Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,17 @@ on:
branches: [main]

jobs:
lint:
name: Lint
lint-js:
name: Lint JS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint JS
run: npx --yes oxlint@latest -D perf

lint-package:
name: Lint package
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -22,13 +31,23 @@ jobs:
cache: npm
- run: npm install --no-fund --no-audit --ignore-scripts
- run: npm run build
- name: Lint JS
run: npx --yes oxlint@latest -D perf
- name: Check types
run: npm run check --if-present
- name: Lint package
- name: Run publint
run: npx --yes publint

check-types:
name: Check types
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
cache: npm
- run: npm install --no-fund --no-audit --ignore-scripts
- name: Check types
run: npm run check

test:
name: Unit tests
runs-on: ubuntu-latest
Expand Down