Add lint job to push action
This commit is contained in:
parent
b637af9c7a
commit
64306308ce
2 changed files with 23 additions and 3 deletions
|
@ -1,9 +1,26 @@
|
||||||
---
|
---
|
||||||
on: [push, pull_request]
|
on: [push]
|
||||||
|
|
||||||
name: Build
|
name: Push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
- name: Check code formatting
|
||||||
|
run: yarn lint:prettier
|
||||||
|
- name: Check code quality
|
||||||
|
run: yarn lint:eslint
|
||||||
|
- name: Check types
|
||||||
|
run: yarn lint:tsc
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
|
@ -9,7 +9,10 @@
|
||||||
"build:targets": "yarn build:client && yarn build:server",
|
"build:targets": "yarn build:client && yarn build:server",
|
||||||
"build:client": "tsc -b && vite build --outDir dist/client",
|
"build:client": "tsc -b && vite build --outDir dist/client",
|
||||||
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
"build:server": "tsc -b && vite build --outDir dist/server --ssr src/entry-server.tsx",
|
||||||
"lint": "eslint .",
|
"lint": "yarn lint:tsc && yarn lint:eslint && yarn lint:prettier",
|
||||||
|
"lint:prettier": "prettier --check .",
|
||||||
|
"lint:eslint": "eslint .",
|
||||||
|
"lint:tsc": "tsc -b --noEmit",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue