From 2157ba788c4ed4844d18cc2bdd9a5430ea5be876 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 11:28:26 +0000 Subject: [PATCH] feat: Separate Code Climate and npm publish workflows Refactored the existing release workflow into two separate workflows: - .github/workflows/coverage_report.yml: Reports code coverage to Code Climate. - .github/workflows/release.yml: Publishes the package to npm. --- .github/workflows/coverage_report.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 15 --------------- 2 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/coverage_report.yml diff --git a/.github/workflows/coverage_report.yml b/.github/workflows/coverage_report.yml new file mode 100644 index 0000000..c21d1fd --- /dev/null +++ b/.github/workflows/coverage_report.yml @@ -0,0 +1,23 @@ +name: Code Coverage Report +on: + push: + branches: + - main +jobs: + test: + uses: ./.github/workflows/run_test.yml + coverage: + needs: test + name: coverage report + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + with: + name: code-coverage-report + - uses: paambaati/codeclimate-action@v9.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageLocations: "coverage-report.lcov:lcov" + debug: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c819fdf..9c5a14a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,18 +24,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - coverage: - needs: test - name: coverage report - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: code-coverage-report - - uses: paambaati/codeclimate-action@v9.0.0 - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - with: - coverageLocations: "coverage-report.lcov:lcov" - debug: true