From a39f7a865945cfd5dd2d4926f2c39542c7e4f78a Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Mon, 24 Apr 2023 11:27:46 -0700 Subject: [PATCH] chore: use npm in CI action --- .github/workflows/ci.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24f9038..6efea4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,36 +8,33 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - nodejs: [10, 12, 14, 16] + nodejs: [10, 12, 14, 16, 18] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.nodejs }} - - name: (env) pnpm - run: curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node - - name: Install - run: pnpm install + run: npm install - name: (coverage) Install - if: matrix.nodejs >= 16 - run: pnpm add -g c8 + if: matrix.nodejs >= 18 + run: npm install -g c8 - name: Build - run: pnpm run build + run: npm run build - name: Test - if: matrix.nodejs < 16 - run: pnpm test + if: matrix.nodejs < 18 + run: npm test - name: (coverage) Test - if: matrix.nodejs >= 16 - run: c8 --include=packages pnpm test + if: matrix.nodejs >= 18 + run: c8 --include=packages npm test - name: (coverage) Report - if: matrix.nodejs >= 16 + if: matrix.nodejs >= 18 run: | c8 report --reporter=text-lcov > coverage.lcov bash <(curl -s https://codecov.io/bash)