Add lint job to push action
Some checks failed
Audit / Audit (push) Failing after 9s
Push / Lint (push) Successful in 39s
Push / Build (push) Successful in 45s

This commit is contained in:
Michael Bradley 2025-02-23 04:55:17 -05:00
parent b637af9c7a
commit 64306308ce
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
2 changed files with 23 additions and 3 deletions

View file

@ -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

View file

@ -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": {