Skip to content

Commit

Permalink
Update CI to match engines
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Oct 4, 2024
1 parent a13b17a commit 8a77837
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,32 @@ on:
branches:
- main
pull_request:
branches: ['*']
branches:
- main

jobs:
build:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- run: corepack install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache: pnpm
- name: Install dependencies
run: npm install
run: pnpm install
- name: Check coding standards
if: matrix.node-version == '20.x' && matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Test
run: npm run ci
Expand Down

0 comments on commit 8a77837

Please sign in to comment.