Skip to content

Commit

Permalink
No need to run jacoco:report directly. Add token for codegov
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Jul 11, 2024
1 parent 5a5435b commit c7986fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven and Java ${{ matrix.java-version }}
run: mvn -B package --no-transfer-progress --file pom.xml
- name: Generate JaCoCo report ${{ matrix.java-version }}
run: mvn -B jacoco:report --no-transfer-progress --file pom.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
flags: tests-java-${{ matrix.java-version }}
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

deploy:
if: ${{ success() && github.event_name != 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
<executions>
<execution>
<id>report</id>
<phase>test</phase>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
Expand Down

0 comments on commit c7986fd

Please sign in to comment.