Skip to content

Commit 4bdc53f

Browse files
committed
Update CI config
1 parent ca65e55 commit 4bdc53f

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Test
22
on:
33
push:
44
pull_request:
5-
env:
6-
FORCE_COLOR: 2
75
jobs:
86
full:
97
name: Node.js 16 Full
@@ -14,16 +12,20 @@ jobs:
1412
- name: Install Node.js
1513
uses: actions/setup-node@v2
1614
with:
17-
node-version: 16
15+
node-version: 17
16+
cache: yarn
1817
- name: Install dependencies
19-
uses: bahmutov/npm-install@v1
18+
run: yarn --frozen-lockfile
2019
- name: Run tests
2120
run: yarn test
21+
env:
22+
FORCE_COLOR: 2
2223
short:
2324
runs-on: ubuntu-latest
2425
strategy:
2526
matrix:
2627
node-version:
28+
- 16
2729
- 14
2830
- 12
2931
- 10
@@ -35,12 +37,13 @@ jobs:
3537
uses: actions/setup-node@v2
3638
with:
3739
node-version: ${{ matrix.node-version }}
40+
cache: yarn
3841
- name: Install dependencies
39-
uses: bahmutov/npm-install@v1
40-
with:
41-
install-command: yarn --frozen-lockfile --ignore-engines
42+
run: yarn --frozen-lockfile --ignore-engines
4243
- name: Run unit tests
4344
run: npx jest
45+
env:
46+
FORCE_COLOR: 2
4447
windows:
4548
runs-on: windows-latest
4649
name: Windows Quick
@@ -52,8 +55,11 @@ jobs:
5255
- name: Install Node.js LTS
5356
uses: actions/setup-node@v2
5457
with:
55-
node-version: 14
58+
node-version: 16
59+
cache: yarn
5660
- name: Install dependencies
5761
run: yarn install --frozen-lockfile
5862
- name: Run unit tests
5963
run: npx jest
64+
env:
65+
FORCE_COLOR: 2

0 commit comments

Comments
 (0)