From 03979bffe82e0af58f8db1aa2fc52b30139cd106 Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Sat, 20 Jan 2024 09:35:21 -0800 Subject: [PATCH] fix(ci): update versions --- .github/workflows/ci.yml | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb3f908..11a1bc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,32 +8,30 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - nodejs: [10, 12, 14] + nodejs: [10, 12, 14, 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 }} - - uses: actions/cache@v2 - with: - key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} - path: | - ~/.npm - node_modules - **/node_modules - 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 }}