From 8d6dc48f25c98ecd26579bb726e4a25b79192254 Mon Sep 17 00:00:00 2001 From: Rik Smale Date: Fri, 28 Mar 2025 22:48:48 +0100 Subject: [PATCH 1/3] ci: update workflows --- .github/workflows/ci.yml | 17 +++++++---------- .github/workflows/codeql-analysis.yml | 8 ++++---- .github/workflows/npm-publish.yml | 13 ++++++------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4e532908..b7e8c7a49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,25 +6,22 @@ on: branches: [master] jobs: test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: - node-version: [20, 18, 16, 14, 12, 10, 8, 6] + node-version: [22, 20, 18, 16, 14, 12, 10, 8, 6] name: Run tests on Node.js ${{ matrix.node-version }} steps: - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2-beta + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - check-latest: true - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install dependencies - run: npm install --legacy-peer-deps + run: npm install --legacy-peer-deps - name: Run tests run: npm test - - if: matrix.node-version == 20 + - if: matrix.node-version == 22 name: Send coverage info to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage/cobertura-coverage.xml + uses: codecov/codecov-action@v5 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2c6af7763..e89a9b51e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,11 +38,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -53,7 +53,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -67,4 +67,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ccc202ca2..008a86ce6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,21 +4,20 @@ on: types: [created] jobs: publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - - name: Setup Node.js 18 - uses: actions/setup-node@v3 + - name: Setup Node.js 22 + uses: actions/setup-node@v4 with: - node-version: 18 - check-latest: true + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependencies - run: npm install + run: npm install --legacy-peer-deps - name: Run Tests run: npm test - name: Publish Package to NPM Registry From 2bc1896511fe3bd61656d39374bcca173f4185f9 Mon Sep 17 00:00:00 2001 From: Rik Smale <13023439+WikiRik@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:20:07 +0200 Subject: [PATCH 2/3] Add reference to CODECOV_TOKEN --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e8c7a49..32c762830 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,3 +25,5 @@ jobs: - if: matrix.node-version == 22 name: Send coverage info to Codecov uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 8b0bec39966a650d16c58d7c40cdc70fa9da7be5 Mon Sep 17 00:00:00 2001 From: Rik Smale <13023439+WikiRik@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:20:46 +0200 Subject: [PATCH 3/3] Remove unnecessary whitespace --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32c762830..af090a9be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,5 @@ jobs: - if: matrix.node-version == 22 name: Send coverage info to Codecov uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} + with: + token: ${{ secrets.CODECOV_TOKEN }}