Skip to content

Commit d28b3be

Browse files
committed
fix setup-node on github CI
1 parent e52da1f commit d28b3be

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/CI.yml renamed to .github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 12.x
23+
cache: yarn
2024
- run: yarn install --frozen-lockfile --non-interactive
2125
- run: yarn lint:js
2226

@@ -30,8 +34,10 @@ jobs:
3034

3135
steps:
3236
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v4
3338
with:
3439
node-version: ${{ matrix.node-version }}
40+
cache: yarn
3541
- run: yarn install --frozen-lockfile --non-interactive
3642
- run: yarn test
3743

@@ -45,8 +51,10 @@ jobs:
4551

4652
steps:
4753
- uses: actions/checkout@v2
54+
- uses: actions/setup-node@v4
4855
with:
4956
node-version: ${{ matrix.node-version }}
57+
cache: yarn
5058
- run: yarn install --frozen-lockfile --non-interactive
5159
- run: PREFER_NATIVE=true yarn test
5260

@@ -60,8 +68,10 @@ jobs:
6068

6169
steps:
6270
- uses: actions/checkout@v2
71+
- uses: actions/setup-node@v4
6372
with:
6473
node-version: ${{ matrix.node-version }}
74+
cache: yarn
6575
- run: yarn install --frozen-lockfile --non-interactive
6676
- run: NATIVE_PROMISE=true yarn test
6777

@@ -75,8 +85,10 @@ jobs:
7585

7686
steps:
7787
- uses: actions/checkout@v2
88+
- uses: actions/setup-node@v4
7889
with:
7990
node-version: ${{ matrix.node-version }}
91+
cache: yarn
8092
- run: yarn install --frozen-lockfile --non-interactive
8193
- run: yarn run test:node
8294

@@ -105,6 +117,7 @@ jobs:
105117
allow-failure: true
106118
steps:
107119
- uses: actions/checkout@v2
120+
- uses: actions/setup-node@v4
108121
with:
109122
node-version: 12.x
110123
- name: install dependencies

0 commit comments

Comments
 (0)