diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6efea4d..4978e83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,27 +11,31 @@ jobs: nodejs: [10, 12, 14, 16, 18] steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: pnpm/action-setup@v2.2.4 with: + version: 7.13.5 + - uses: actions/setup-node@v3 + with: + cache: 'pnpm' node-version: ${{ matrix.nodejs }} - name: Install - run: npm install + run: pnpm install - name: (coverage) Install if: matrix.nodejs >= 18 - run: npm install -g c8 + run: pnpm add -g c8 - name: Build - run: npm run build + run: pnpm run build - name: Test if: matrix.nodejs < 18 - run: npm test + run: pnpm test - name: (coverage) Test if: matrix.nodejs >= 18 - run: c8 --include=packages npm test + run: c8 --include=packages pnpm test - name: (coverage) Report if: matrix.nodejs >= 18