Bacpop 186 v9 db #280
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
name: Lint CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- "bacpop-*" | |
jobs: | |
lint_frontend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./app/client-v2 | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: ./app/client-v2/package-lock.json | |
- run: npm ci | |
- name: linting | |
run: npm run lint | |
- name: format check | |
run: npm run format:check | |
lint_backend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./app/server | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: ./app/server/package-lock.json | |
- run: npm ci | |
- name: linting | |
run: npm run eslint |