From d136bee1fc00e05e17e9bd623754a2b5bb07400d Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Wed, 2 Oct 2024 02:32:39 +1000 Subject: [PATCH] build: Run builds on node 22 --- .github/workflows/build-and-test.yml | 2 +- .github/workflows/builld-and-test-pr.yml | 2 +- .github/workflows/codeql.yml | 6 +++--- .github/workflows/coverage.yml | 4 ++-- .github/workflows/package.yml | 2 +- .github/workflows/release-please.yml | 4 ++-- .github/workflows/scorecard.yml | 10 +++++----- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 303ea512..df05bb8d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [macos-latest, ubuntu-latest, windows-latest] steps: - name: Harden Runner diff --git a/.github/workflows/builld-and-test-pr.yml b/.github/workflows/builld-and-test-pr.yml index f1845e76..a8216d04 100644 --- a/.github/workflows/builld-and-test-pr.yml +++ b/.github/workflows/builld-and-test-pr.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.x, 20.x] + node-version: [18.x, 20.x, 22.x] os: [macos-latest, ubuntu-latest, windows-latest] steps: - name: Harden Runner diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d40e6486..09598a93 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -56,10 +56,10 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - - name: Use Node.js 20.x + - name: Use Node.js 22.x uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 with: - node-version: 20.x + node-version: 22.x - name: Set up JDK 17 uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 with: @@ -75,7 +75,7 @@ jobs: env: CASE_BROKER_CI_TOKEN: ${{ secrets.PACTFLOW_TOKEN }} CASE_BROKER_BASEURL: https://timothyjones.pactflow.io/ - NODE_VERSION: 20.x + NODE_VERSION: 22.x FORCE_COLOR: true - name: Perform CodeQL Analysis diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 673bc777..583945b4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -18,10 +18,10 @@ jobs: with: fetch-depth: 0 - - name: Use Node.js 18.x + - name: Use Node.js 22.x uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 with: - node-version: 18.x + node-version: 22.x - name: Set up JDK 17 uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 7b630e64..59da1905 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [22.x] steps: - name: Harden Runner uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 7025a3eb..405b7713 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -42,7 +42,7 @@ jobs: - name: Setup Node uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 with: - node-version: 18 + node-version: 22 registry-url: 'https://registry.npmjs.org' - name: Set up JDK 17 uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0 @@ -60,7 +60,7 @@ jobs: env: CASE_BROKER_CI_TOKEN: ${{ secrets.PACTFLOW_TOKEN }} CASE_BROKER_BASEURL: https://timothyjones.pactflow.io/ - NODE_VERSION: 18 + NODE_VERSION: 22 FORCE_COLOR: true # Release Please has already incremented versions and published tags, so we just diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 7c95404a..700b6455 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -12,7 +12,7 @@ on: schedule: - cron: '15 20 * * 6' push: - branches: [ "main" ] + branches: ['main'] # Declare default permissions as read only. permissions: read-all @@ -36,12 +36,12 @@ jobs: with: egress-policy: audit - - name: "Checkout code" + - name: 'Checkout code' uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: persist-credentials: false - - name: "Run analysis" + - name: 'Run analysis' uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0 with: results_file: results.sarif @@ -63,7 +63,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - - name: "Upload artifact" + - name: 'Upload artifact' uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: SARIF file @@ -72,7 +72,7 @@ jobs: # Upload the results to GitHub's code scanning dashboard (optional). # Commenting out will disable upload of results to your repo's Code Scanning dashboard - - name: "Upload to code-scanning" + - name: 'Upload to code-scanning' uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9 with: sarif_file: results.sarif