From d589b2a83a346bde2698d6541998501c912be957 Mon Sep 17 00:00:00 2001 From: Eric King Date: Sun, 14 Jul 2024 07:49:54 -0500 Subject: [PATCH] chore(ci): updated `matrix.node-version` --- .github/workflows/node.js.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 61d7ad0..c57ba47 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,26 +12,35 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x, 22.x] webpack-version: ['5.61.0', latest] dev-server-version: [4, latest] css-loader-version: ['3.5.0', latest] steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' + - name: Install dependencies run: pnpm install + - name: Install specific dependency versions run: pnpm install webpack@${{ matrix.webpack-version }} webpack-dev-server@${{ matrix.dev-server-version }} css-loader@${{ matrix.css-loader-version }} --no-lockfile + - name: Build run: pnpm build + - name: Test run: pnpm coverage + - name: Upload code coverage uses: codecov/codecov-action@v4 with: