Skip to content

separate CI steps to individial jobs #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 25, 2025
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