Skip to content

Commit 7f32aab

Browse files
committed
update CI workflow to list each as its own job
1 parent 57f25e1 commit 7f32aab

File tree

1 file changed

+41
-18
lines changed

1 file changed

+41
-18
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,57 @@ defaults:
1111
shell: bash
1212

1313
jobs:
14-
test:
15-
name: Test Node ${{ matrix.node }}
14+
prettier:
15+
name: Prettier
1616
runs-on: ubuntu-latest
17-
strategy:
18-
matrix:
19-
node: [18, 20, 22]
2017
steps:
2118
- uses: actions/checkout@v4
2219
- uses: actions/setup-node@v4
2320
with:
24-
node-version: ${{ matrix.node }}
25-
21+
node-version: 18
2622
- name: Install Dependencies
27-
run: |
28-
npm install
29-
23+
run: npm install
3024
- name: Prettier
31-
run: |
32-
npm run prettier
25+
run: npm run prettier
3326

27+
lint:
28+
name: Lint
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: 18
35+
- name: Install Dependencies
36+
run: npm install
3437
- name: Lint
35-
run: |
36-
npm run lint
38+
run: npm run lint
3739

40+
build:
41+
name: Build
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version: 18
48+
- name: Install Dependencies
49+
run: npm install
3850
- name: Build
39-
run: |
40-
npm run build
51+
run: npm run build
4152

53+
test:
54+
name: Test Node ${{ matrix.node }}
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
node: [18, 20, 22]
59+
steps:
60+
- uses: actions/checkout@v4
61+
- uses: actions/setup-node@v4
62+
with:
63+
node-version: ${{ matrix.node }}
64+
- name: Install Dependencies
65+
run: npm install
4266
- name: Test
43-
run: |
44-
npm run test -- --coverage
67+
run: npm run test -- --coverage

0 commit comments

Comments
 (0)