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