kopia lustrzana https://github.com/cloudflare/wildebeest
add linting checks to PRs checks
rodzic
00463b233a
commit
11040ba8e2
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Ładowanie…
Reference in New Issue