From ff09dfdedecfd0e636bd13c53f7273b95c7bbbb2 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sat, 20 Jan 2024 09:33:22 -0800 Subject: [PATCH] fix(ci): update versions --- .github/workflows/ci.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e025a1..b4f9c50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}