Skip to content

Commit f613c99

Browse files
committed
[actions] use node/install instead of node/run; use codecov action
1 parent c0e3ac4 commit f613c99

5 files changed

Lines changed: 31 additions & 28 deletions

File tree

.github/workflows/node-4+.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28-
name: 'npm install && npm run tests-only'
27+
- uses: ljharb/actions/node/install@main
28+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
command: 'tests-only'
31+
- run: npm run tests-only
32+
- uses: codecov/codecov-action@v1
33+
3234
minors:
3335
needs: [matrix, latest]
3436
name: 'non-latest minors'
@@ -41,11 +43,12 @@ jobs:
4143

4244
steps:
4345
- uses: actions/checkout@v2
44-
- uses: ljharb/actions/node/run@main
45-
name: 'npm install && npm run tests-only'
46+
- uses: ljharb/actions/node/install@main
47+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4648
with:
4749
node-version: ${{ matrix.node-version }}
48-
command: 'tests-only'
50+
- run: npm run tests-only
51+
- uses: codecov/codecov-action@v1
4952

5053
node:
5154
name: 'node 4+'

.github/workflows/node-iojs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28-
name: 'npm install && npm run tests-only'
27+
- uses: ljharb/actions/node/install@main
28+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
command: 'tests-only'
3231
skip-ls-check: true
32+
- run: npm run tests-only
33+
- uses: codecov/codecov-action@v1
3334

3435
minors:
3536
needs: [matrix, latest]
@@ -43,12 +44,13 @@ jobs:
4344

4445
steps:
4546
- uses: actions/checkout@v2
46-
- uses: ljharb/actions/node/run@main
47-
name: 'npm install && npm run tests-only'
47+
- uses: ljharb/actions/node/install@main
48+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4849
with:
4950
node-version: ${{ matrix.node-version }}
50-
command: 'tests-only'
5151
skip-ls-check: true
52+
- run: npm run tests-only
53+
- uses: codecov/codecov-action@v1
5254

5355
node:
5456
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v2
27-
- uses: ljharb/actions/node/run@main
28-
name: 'npm install && npm run tests-only'
27+
- uses: ljharb/actions/node/install@main
28+
name: 'nvm install ${{ matrix.node-version }} && npm install'
2929
with:
3030
node-version: ${{ matrix.node-version }}
31-
command: 'tests-only'
3231
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
3332
skip-ls-check: true
33+
- run: npm run tests-only
34+
- uses: codecov/codecov-action@v1
3435

3536
unstable:
3637
needs: [matrix, stable]
@@ -44,13 +45,14 @@ jobs:
4445

4546
steps:
4647
- uses: actions/checkout@v2
47-
- uses: ljharb/actions/node/run@main
48-
name: 'npm install && npm run tests-only'
48+
- uses: ljharb/actions/node/install@main
49+
name: 'nvm install ${{ matrix.node-version }} && npm install'
4950
with:
5051
node-version: ${{ matrix.node-version }}
51-
command: 'tests-only'
5252
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
5353
skip-ls-check: true
54+
- run: npm run tests-only
55+
- uses: codecov/codecov-action@v1
5456

5557
node:
5658
name: 'node 0.x'

.nycrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
"all": true,
33
"check-coverage": false,
44
"reporter": ["text-summary", "text", "html", "json"],
5-
"lines": 86,
6-
"statements": 85.93,
7-
"functions": 82.43,
8-
"branches": 76.06,
95
"exclude": [
106
"coverage",
117
"test"

0 commit comments

Comments
 (0)