Skip to content

Commit

Permalink
Update test_coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil authored Jul 31, 2023
1 parent 67dae0f commit fbf7f66
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Run tests
run: |
mvn '-Dtest=!*IntegrationTest' verify -Djacoco.destFile=exportJacoco/jacoco-fast.exec
- name: Upload jacoco exec results
uses: actions/upload-artifact@v2
with:
name: unit-tests-jacoco
path: exportJacoco/jacoco-fast.exec
- name: Upload coverage reports to Codecov
run: mvn -B verify -P coverage --no-transfer-progress
- name: Upload jacoco coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./**/target/site/jacoco/jacoco.xml
name: codecov
token: ${{ secrets.CODECOV_TOKEN }}


0 comments on commit fbf7f66

Please sign in to comment.