Skip to content

Commit

Permalink
[actions] update codecov uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 14, 2021
1 parent 0f1db2a commit b90aff2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/node-4+.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.latest) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

minors:
needs: [matrix, latest]
Expand All @@ -41,18 +40,17 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.minors) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

node:
name: 'node 4+'
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/node-iojs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.latest) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
skip-ls-check: true
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

minors:
needs: [matrix, latest]
Expand All @@ -42,19 +41,18 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.minors) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
skip-ls-check: true
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

node:
name: 'io.js'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-pretest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
- run: npm run pretest
Expand All @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
name: 'nvm install lts/* && npm install'
with:
node-version: 'lts/*'
- run: npm run posttest
10 changes: 4 additions & 6 deletions .github/workflows/node-zero.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.stable) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
skip-ls-check: true
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

unstable:
needs: [matrix, stable]
Expand All @@ -43,20 +42,19 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ljharb/actions/node/install@main
name: 'nvm install ${{ matrix.node-version }} && npm install'
with:
node-version: ${{ matrix.node-version }}
cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
skip-ls-check: true
- run: npm run tests-only
- run: bash <(curl -s https://codecov.io/bash) -f coverage/*.json;
- uses: codecov/codecov-action@v2

node:
name: 'node 0.x'
Expand Down

0 comments on commit b90aff2

Please sign in to comment.