From f7c36ec2f9ef76fd390829346404066cb3495c49 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 13:55:25 +0000 Subject: [PATCH 1/2] chore: Add Node.js v22 to CI test matrix This commit updates the CI configuration to include Node.js v22 in the test matrix. - Adds `22.x` to the list of Node.js versions to test against. - Updates `actions/checkout` and `actions/setup-node` to `v4`. - Moves the code coverage generation to run on the Node.js `22.x` job, as it's the latest version in the matrix. --- .github/workflows/run_test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index 9c8cafc..236b508 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -21,19 +21,19 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x, 16.x] + node-version: [16.x, 18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run test - run: npm run coverage - if: matrix.node-version == '20.x' + if: matrix.node-version == '22.x' - uses: actions/upload-artifact@v4 - if: matrix.node-version == '20.x' + if: matrix.node-version == '22.x' with: name: code-coverage-report path: coverage-report.lcov From 7cf0a93913ceef762c267cb3a947c176479ce068 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 15:06:05 +0000 Subject: [PATCH 2/2] fix: Update Code Climate workflow trigger This commit fixes the Code Climate integration to ensure the test coverage and maintainability badges are kept up-to-date. The `coverage_report.yml` workflow was previously configured to only run when a new version tag was pushed. This meant that the Code Climate data was only updated on new releases. This change modifies the workflow to trigger on every push to the `main` branch. This ensures that the coverage report is sent to Code Climate after every change, keeping the badges accurate. --- .github/workflows/coverage_report.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage_report.yml b/.github/workflows/coverage_report.yml index 7f973da..7bf024a 100644 --- a/.github/workflows/coverage_report.yml +++ b/.github/workflows/coverage_report.yml @@ -1,8 +1,8 @@ name: report coverage data to code climate on: push: - tags: - - 'v*' + branches: + - main jobs: test: uses: ./.github/workflows/run_test.yml @@ -12,7 +12,7 @@ jobs: name: coverage report runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: name: code-coverage-report