diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 86% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 457db2ca..7bdcb895 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,14 @@ jobs: - name: Run Test Suite if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} run: make IMAGE=${{ matrix.images.image-id }} test + - name: Upload the code coverage report + if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} + uses: codacy/codacy-coverage-reporter-action@v1.1 + # Sometimes this fails when user does not have permissions to secrets + continue-on-error: true + with: + project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} + coverage-reports: test/reports/cobertura/runTests.sh/cobertura.xml - name: Run Super-Linter Tests if: ${{ github.repository == 'github/super-linter' && github.ref != 'refs/heads/main' }} run: |