Skip to content

Commit

Permalink
chore(test): simplify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Dec 25, 2023
1 parent 0c5fa9c commit c7d5734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ jobs:
test:
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 20
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20

- run: npm install

Expand All @@ -30,7 +26,6 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.node-version == '18.x'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -40,10 +35,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- run: npm install

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 18
node-version: 20
registry-url: 'https://registry.npmjs.org'

- run: npm ci
Expand Down

0 comments on commit c7d5734

Please sign in to comment.