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 1bd1bc9 commit ff09dfd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12]
nodejs: [8, 10, 12, 18]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1

- 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 >= 12
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 ff09dfd

Please sign in to comment.