Skip to content

Commit

Permalink
[actions] use node/install instead of node/run
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 7, 2021
1 parent c2a790a commit 752dc96
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/node-4+.yml
Expand Up @@ -57,14 +57,14 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run tests-only'
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
node-version: ${{ matrix.node-version }}
command: 'unit-test'
after_success: 'npm run coveralls'
after_install: NPM_CONFIG_LEGACY_PEER_DEPS=true npm install --no-save "eslint@${{ matrix.eslint }}"
skip-ls-check: true
- run: npm run unit-test
- run: npm run coveralls

node:
name: 'node 4+'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/node-pretest.yml
Expand Up @@ -8,21 +8,21 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run pretest'
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
command: 'pretest'
skip-ls-check: true
- run: npm run pretest

posttest:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run posttest'
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
command: 'posttest'
skip-ls-check: true
- run: npm run posttest
8 changes: 4 additions & 4 deletions .github/workflows/readme.yml
Expand Up @@ -8,9 +8,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/run@main
name: 'npm install && npm run generate-list-of-rules'
- uses: ljharb/actions/node/install@main
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
command: 'generate-list-of-rules'
skip-ls-check: true
skip-ls-check: true
- run: npm run generate-list-of-rules

0 comments on commit 752dc96

Please sign in to comment.