Skip to content

Commit

Permalink
chore(ci): updated matrix.node-version
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeveric committed Jul 14, 2024
1 parent afffc0d commit d589b2a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d589b2a

Please sign in to comment.