Skip to content

Commit

Permalink
fix(ci): update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jan 20, 2024
1 parent b0dfe58 commit e1c6a38
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [10, 12, 14]
nodejs: [10, 12, 14, 16, 18]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodejs }}

- name: Install
run: |
npm install
npm install -g nyc
run: npm install

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

- name: Test w/ Coverage
run: nyc --include=src npm test
if: matrix.nodejs >= 18
run: |
npm install -g c8
c8 --include=src npm test
- name: Report
if: matrix.nodejs >= 14
if: matrix.nodejs >= 18
run: |
nyc report --reporter=text-lcov > coverage.lcov
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e1c6a38

Please sign in to comment.