Skip to content

Commit

Permalink
ci: test only Node.js 20 & pass token to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Apr 17, 2024
1 parent 72c5203 commit 750d015
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 20.x
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ jobs:
name: Unit Tests - Node.js
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock

Expand All @@ -44,5 +40,6 @@ jobs:
run: yarn test

- name: Codecov
if: ${{ matrix.node-version == '20.x' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 750d015

Please sign in to comment.