add linting checks to PRs checks

pull/56/head
Dario Piotrowicz 2023-01-10 11:29:28 +00:00
rodzic 00463b233a
commit 11040ba8e2
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -23,7 +23,11 @@ jobs:
- name: Build
run: yarn build
- name: Check formatting
run: yarn pretty
run: yarn pretty
- name: Check backend linting
run: yarn lint:backend
- name: Check functions linting
run: yarn lint:functions
- name: Run API tests
run: yarn test
@ -40,5 +44,7 @@ jobs:
run: yarn && yarn --cwd frontend
- name: Initialize local database
run: yarn database:create-mock
- name: Check frontend linting
run: yarn lint:frontend
- name: Run UI tests
run: yarn test:ui

Wyświetl plik

@ -29,7 +29,7 @@
"test": "NODE_OPTIONS=--experimental-vm-modules yarn jest",
"lint": "run-s lint:* --print-label",
"lint:frontend": "npm --prefix frontend run lint",
"lint:be": "npx eslint backend",
"lint:backend": "npx eslint backend",
"lint:functions": "npx eslint functions",
"build": "yarn --cwd frontend install && yarn --cwd frontend build",
"d1": "NO_D1_WARNING=true wrangler d1",