diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b6729dd..bbbcb13 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,13 +1,13 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: "Node.js" +name: 'Node.js' on: pull_request: - branches: [ "main", main* ] + branches: [ 'main', 'main*' ] push: - branches: [ "main" ] + branches: [ 'main' ] permissions: contents: read @@ -18,13 +18,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - name: Checkout The Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js v${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm'