Skip to content

Commit

Permalink
[actions] update to use node/install action
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 30, 2021
1 parent c275964 commit 2c2a2ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/node-4+.yml
Expand Up @@ -65,13 +65,16 @@ jobs:

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

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

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

flow:
runs-on: ubuntu-latest

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

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

0 comments on commit 2c2a2ad

Please sign in to comment.