diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 79f3d54..e8d6d9a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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