Add 400 errors for bad requests #167
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: Frontend CI | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to correct branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install dependencies for CI environment | |
working-directory: ./client | |
run: npm ci | |
- name: Check if code is pretty | |
working-directory: ./client | |
run: npm run prettier-check | |
- name: Check if code is linted | |
working-directory: ./client | |
run: npm run lint-strict |