Skip to content

Commit cc07807

Browse files
committed
Add codecov to have coverage for PRs from forks
1 parent 015a963 commit cc07807

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,18 @@ jobs:
4848
if: "${{ !(matrix.arch == 'x64' && matrix.os == 'ubuntu-latest' && matrix.java == '11') }}"
4949
run: mvn verify -B -"Dgpg.skip"
5050

51+
# doesn't work with PRs from forks, see https://jira.sonarsource.com/browse/MMF-1371
5152
- name: Build with Maven and run Sonar
5253
if: "${{ matrix.arch == 'x64' && matrix.os == 'ubuntu-latest' && matrix.java == '11' }}"
5354
env:
5455
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5556
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5657
run: mvn -X -B -"Dgpg.skip" verify jacoco:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
5758

59+
- name: Run codecovc
60+
if: "${{ matrix.arch == 'x64' && matrix.os == 'ubuntu-latest' && matrix.java == '11' }}"
61+
uses: codecov/codecov-action@v1
62+
5863
release:
5964
if: github.ref == 'refs/heads/master'
6065
needs: test

0 commit comments

Comments
 (0)