Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 724bae1

Browse files
committed
Separate CI jobs
1 parent 48865e2 commit 724bae1

File tree

1 file changed

+53
-3
lines changed

1 file changed

+53
-3
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ on:
77
pull_request:
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ubuntu-latest
1212

13+
name: 'Test: node-18, ubuntu-latest'
1314
steps:
1415
- name: Checkout
1516
uses: actions/checkout@v3
@@ -36,14 +37,63 @@ jobs:
3637
- name: Install dependencies
3738
run: pnpm install --frozen-lockfile
3839

40+
- name: Check
41+
run: pnpm run check
42+
43+
- name: Test
44+
run: pnpm run test
45+
46+
lint:
47+
runs-on: ubuntu-latest
48+
name: 'Lint: node-18, ubuntu-latest'
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v3
52+
with:
53+
fetch-depth: 0
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v2
57+
with:
58+
version: 7
59+
60+
- name: Set node version to 18
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: 18
64+
cache: 'pnpm'
65+
66+
- name: Prepare
67+
run: pnpm install --frozen-lockfile
68+
3969
- name: Lint
4070
run: pnpm run lint
4171

4272
- name: Check formatting
4373
run: pnpm prettier --check .
4474

45-
- name: Check
46-
run: pnpm run check
75+
audit:
76+
runs-on: ubuntu-latest
77+
name: 'Audit: node-18, ubuntu-latest'
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v3
81+
with:
82+
fetch-depth: 0
83+
84+
- name: Install pnpm
85+
uses: pnpm/action-setup@v2
86+
with:
87+
version: 7
88+
89+
- name: Set node version to 18
90+
uses: actions/setup-node@v3
91+
with:
92+
node-version: 18
93+
cache: 'pnpm'
94+
95+
- name: Prepare
96+
run: pnpm install --frozen-lockfile
4797

4898
- name: Audit production
4999
run: pnpm audit --prod

0 commit comments

Comments
 (0)