-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6772 from alvasw/fix_broken_codacy_coverage_reporter
Fix broken codacy coverage reporter
- Loading branch information
Showing
2 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Codacy Coverage Reporter | ||
|
||
on: ["push"] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: codacy-coverage-reporter | ||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '15' | ||
distribution: 'zulu' | ||
|
||
- name: Build with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: build jacocoTestReport testCodeCoverageReport --scan | ||
|
||
- name: Run codacy-coverage-reporter | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ${{ github.workspace }}/code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,26 +28,4 @@ jobs: | |
- name: Build with Gradle | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: build jacocoTestReport testCodeCoverageReport --scan | ||
|
||
- name: Upload coverage report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml | ||
|
||
publish_coverage: | ||
name: Publish coverage | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Download coverage report | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage-report | ||
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport | ||
- name: Run codacy-coverage-reporter | ||
uses: codacy/[email protected] | ||
with: | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
coverage-reports: ${{ github.workspace }}/code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml | ||
arguments: build --scan |