Skip to content

Commit 300d15b

Browse files
committed
[actions] update workflows
1 parent d9f79b7 commit 300d15b

5 files changed

Lines changed: 38 additions & 22 deletions

File tree

.github/workflows/node-4+.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
strategy:
23+
fail-fast: false
2324
matrix: ${{ fromJson(needs.matrix.outputs.latest) }}
2425

2526
steps:
2627
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28-
name: 'npm install && npm run tests-only'
28+
- uses: ljharb/actions/node/install@main
29+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2930
with:
3031
node-version: ${{ matrix.node-version }}
31-
command: 'tests-only'
32+
- run: npm run tests-only
33+
- uses: codecov/codecov-action@v1
34+
3235
minors:
3336
needs: [matrix, latest]
3437
name: 'non-latest minors'
@@ -37,14 +40,17 @@ jobs:
3740
runs-on: ubuntu-latest
3841

3942
strategy:
43+
fail-fast: false
4044
matrix: ${{ fromJson(needs.matrix.outputs.minors) }}
4145

4246
steps:
4347
- uses: actions/checkout@v2
44-
- uses: ljharb/actions/node/run@main
48+
- uses: ljharb/actions/node/install@main
49+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4550
with:
4651
node-version: ${{ matrix.node-version }}
47-
command: 'tests-only'
52+
- run: npm run tests-only
53+
- uses: codecov/codecov-action@v1
4854

4955
node:
5056
name: 'node 4+'

.github/workflows/node-iojs.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,18 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
strategy:
23+
fail-fast: false
2324
matrix: ${{ fromJson(needs.matrix.outputs.latest) }}
2425

2526
steps:
2627
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28-
name: 'npm install && npm run tests-only'
28+
- uses: ljharb/actions/node/install@main
29+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2930
with:
3031
node-version: ${{ matrix.node-version }}
31-
command: 'tests-only'
3232
skip-ls-check: true
33+
- run: npm run tests-only
34+
- uses: codecov/codecov-action@v1
3335

3436
minors:
3537
needs: [matrix, latest]
@@ -39,16 +41,18 @@ jobs:
3941
runs-on: ubuntu-latest
4042

4143
strategy:
44+
fail-fast: false
4245
matrix: ${{ fromJson(needs.matrix.outputs.minors) }}
4346

4447
steps:
4548
- uses: actions/checkout@v2
46-
- uses: ljharb/actions/node/run@main
47-
name: 'npm install && npm run tests-only'
49+
- uses: ljharb/actions/node/install@main
50+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4851
with:
4952
node-version: ${{ matrix.node-version }}
50-
command: 'tests-only'
5153
skip-ls-check: true
54+
- run: npm run tests-only
55+
- uses: codecov/codecov-action@v1
5256

5357
node:
5458
name: 'io.js'

.github/workflows/node-pretest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/run@main
12-
name: 'npm install && npm run pretest'
11+
- uses: ljharb/actions/node/install@main
12+
name: 'nvm install lts/* && npm install'
1313
with:
1414
node-version: 'lts/*'
15-
command: 'pretest'
15+
- run: npm run pretest
1616

1717
posttest:
1818
runs-on: ubuntu-latest
1919

2020
steps:
2121
- uses: actions/checkout@v2
22-
- uses: ljharb/actions/node/run@main
23-
name: 'npm install && npm run posttest'
22+
- uses: ljharb/actions/node/install@main
23+
name: 'nvm install lts/* && npm install'
2424
with:
2525
node-version: 'lts/*'
26-
command: 'posttest'
26+
- run: npm run posttest

.github/workflows/node-zero.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,19 @@ jobs:
2020
runs-on: ubuntu-latest
2121

2222
strategy:
23+
fail-fast: false
2324
matrix: ${{ fromJson(needs.matrix.outputs.stable) }}
2425

2526
steps:
2627
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28+
- uses: ljharb/actions/node/install@main
29+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2830
with:
2931
node-version: ${{ matrix.node-version }}
30-
command: 'tests-only'
3132
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
3233
skip-ls-check: true
34+
- run: npm run tests-only
35+
- uses: codecov/codecov-action@v1
3336

3437
unstable:
3538
needs: [matrix, stable]
@@ -39,16 +42,19 @@ jobs:
3942
runs-on: ubuntu-latest
4043

4144
strategy:
45+
fail-fast: false
4246
matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}
4347

4448
steps:
4549
- uses: actions/checkout@v2
46-
- uses: ljharb/actions/node/run@main
50+
- uses: ljharb/actions/node/install@main
51+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4752
with:
4853
node-version: ${{ matrix.node-version }}
49-
command: 'tests-only'
5054
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
5155
skip-ls-check: true
56+
- run: npm run tests-only
57+
- uses: codecov/codecov-action@v1
5258

5359
node:
5460
name: 'node 0.x'

.github/workflows/rebase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v2
1313
- uses: ljharb/rebase@master
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)