Add oxlint to required deploy checks.
This commit is contained in:
parent
b672c50d78
commit
0139d134cf
1 changed files with 23 additions and 1 deletions
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
|
|
@ -72,9 +72,31 @@ jobs:
|
||||||
- name: 🔎 Type check
|
- name: 🔎 Type check
|
||||||
run: npm run typecheck
|
run: npm run typecheck
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: 🔍 Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 🛑 Cancel Previous Runs
|
||||||
|
uses: styfle/cancel-workflow-action@0.12.1
|
||||||
|
|
||||||
|
- name: ⬇️ Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: ⎔ Setup node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: 📥 Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: 🔍 Lint (oxlint)
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: 🐳 Build
|
name: 🐳 Build
|
||||||
needs: [test, typecheck]
|
needs: [test, typecheck, lint]
|
||||||
# only build/deploy main branch on pushes
|
# only build/deploy main branch on pushes
|
||||||
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue