Skip to content

Commit

Permalink
chore(ci): add Node 20 to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Oct 11, 2024
1 parent c7d2479 commit 9ca1cbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [10, 12, 14, 16, 18]
nodejs: [10, 12, 14, 16, 18, 20]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -22,22 +22,22 @@ jobs:
run: bun install

- name: (coverage) Install
if: matrix.nodejs >= 18
if: matrix.nodejs >= 20
run: bun add -g c8

- name: Build
run: bun run build

- name: Test
if: matrix.nodejs < 18
if: matrix.nodejs < 20
run: npm test

- name: (coverage) Test
if: matrix.nodejs >= 18
if: matrix.nodejs >= 20
run: c8 --include=packages npm test

- name: (coverage) Report
if: matrix.nodejs >= 18
if: matrix.nodejs >= 20
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit 9ca1cbc

Please sign in to comment.