Skip to content

Commit 2c2a2ad

Browse files
committedMar 30, 2021
[actions] update to use node/install action
1 parent c275964 commit 2c2a2ad

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed
 

‎.github/workflows/node-4+.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,16 @@ jobs:
6565

6666
steps:
6767
- uses: actions/checkout@v2
68-
- uses: ljharb/actions/node/run@main
69-
name: 'npm install && npm run tests-only'
68+
with:
69+
fetch-depth: 0
70+
- uses: ljharb/actions/node/install@main
71+
name: 'nvm install ${{ matrix.node-version }} && npm install'
7072
with:
7173
after_install: npm uninstall --no-save eslint-config-airbnb-base && NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
7274
node-version: ${{ matrix.node-version }}
73-
command: 'test:ci'
7475
skip-ls-check: true
76+
- run: npm run test:ci
77+
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
7578

7679
node:
7780
name: 'node 4+'

‎.github/workflows/node-pretest.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: ljharb/actions/node/run@main
12-
name: 'npm install && npm run lint'
11+
- uses: ljharb/actions/node/install@main
12+
name: 'nvm install lts/* && npm install'
1313
with:
1414
node-version: 'lts/*'
15-
command: 'lint'
1615
skip-ls-check: true
16+
- run: npm run lint
1717

1818
flow:
1919
runs-on: ubuntu-latest
2020

2121
steps:
2222
- uses: actions/checkout@v2
23-
- uses: ljharb/actions/node/run@main
24-
name: 'npm install && npm run flow'
23+
- uses: ljharb/actions/node/install@main
24+
name: 'nvm install lts/* && npm install'
2525
with:
2626
node-version: 'lts/*'
27-
command: 'flow'
2827
skip-ls-check: true
28+
- run: npm run flow
2929

3030
posttest:
3131
runs-on: ubuntu-latest
3232

3333
steps:
3434
- uses: actions/checkout@v2
35-
- uses: ljharb/actions/node/run@main
36-
name: 'npm install && npm run posttest'
35+
- uses: ljharb/actions/node/install@main
36+
name: 'nvm install lts/* && npm install'
3737
with:
3838
node-version: 'lts/*'
39-
command: 'posttest'
4039
skip-ls-check: true
40+
- run: npm run posttest

0 commit comments

Comments
 (0)
Please sign in to comment.