backport gateway bash_functions (#174) #433
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Backend Verify PR | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ["**"] | |
defaults: | |
run: | |
working-directory: "./backend" | |
jobs: | |
backend-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up NodeJs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
registry-url: "https://registry.npmjs.org" | |
cache-dependency-path: backend/package-lock.json | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
- name: Test | |
run: npm run test |