Skip to content

Commit

Permalink
chore(ci): update node matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Dec 29, 2023
1 parent 42354d3 commit 308a238
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12, 14, 16]
nodejs: [8, 10, 12, 14, 16, 18]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}

Expand All @@ -25,22 +25,22 @@ jobs:
run: npm install

- name: (coverage) Install
if: matrix.nodejs >= 16
if: matrix.nodejs >= 18
run: npm install -g nyc

- name: Build
run: npm run build

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

- name: (coverage) Test
run: nyc --include=src npm test
if: matrix.nodejs >= 16
if: matrix.nodejs >= 18

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

0 comments on commit 308a238

Please sign in to comment.