Skip to content

Commit b89b5fb

Browse files
committed
Add separate jobs in GitHub Actions CI
1 parent de4fe91 commit b89b5fb

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/ci.yml

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

1212
jobs:
13-
test:
14-
name: Test
13+
lint:
14+
name: Static code analysis
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -27,4 +27,23 @@ jobs:
2727
run: yarn --immutable
2828

2929
- name: Run tests
30-
run: yarn test
30+
run: yarn lint
31+
32+
unit:
33+
name: Unit tests
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
40+
- name: Use Node.js
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: '16'
44+
45+
- name: Install dependencies
46+
run: yarn --immutable
47+
48+
- name: Run tests
49+
run: yarn jest

0 commit comments

Comments
 (0)