Skip to content

Commit 746d327

Browse files
authored
separate CI steps to individial jobs (#36)
1 parent abc513f commit 746d327

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ on:
1010
branches: [main]
1111

1212
jobs:
13-
lint:
14-
name: Lint
13+
lint-js:
14+
name: Lint JS
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Lint JS
20+
run: npx --yes oxlint@latest -D perf
21+
22+
lint-package:
23+
name: Lint package
1524
runs-on: ubuntu-latest
1625
steps:
1726
- name: Checkout code
@@ -22,13 +31,23 @@ jobs:
2231
cache: npm
2332
- run: npm install --no-fund --no-audit --ignore-scripts
2433
- run: npm run build
25-
- name: Lint JS
26-
run: npx --yes oxlint@latest -D perf
27-
- name: Check types
28-
run: npm run check --if-present
29-
- name: Lint package
34+
- name: Run publint
3035
run: npx --yes publint
3136

37+
check-types:
38+
name: Check types
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout code
42+
uses: actions/checkout@v4
43+
- name: Use Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
cache: npm
47+
- run: npm install --no-fund --no-audit --ignore-scripts
48+
- name: Check types
49+
run: npm run check
50+
3251
test:
3352
name: Unit tests
3453
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)