Skip to content

Commit

Permalink
Merge pull request #628 from peternied/traffic-capture-test-reports
Browse files Browse the repository at this point in the history
Upload TrafficCapture test results as artifacts in GitHub workflow
  • Loading branch information
peternied authored May 2, 2024
2 parents 8b52bdf + 2705490 commit d214d06
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/gradle-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,24 @@ jobs:
gradle-home-cache-cleanup: true

- name: Run Gradle Build
run: ./gradlew build -x test --scan --info --stacktrace
run: ./gradlew build -x test --scan --stacktrace
working-directory: TrafficCapture
env:
OS_MIGRATIONS_GRADLE_SCAN_TOS_AGREE_AND_ENABLED: ''

- name: Run Tests with Coverage
run: ./gradlew test jacocoTestReport --scan --info --stacktrace
run: ./gradlew test jacocoTestReport --scan --stacktrace
working-directory: TrafficCapture
env:
OS_MIGRATIONS_GRADLE_SCAN_TOS_AGREE_AND_ENABLED: ''

- uses: actions/upload-artifact@v4
if: always()
with:
name: traffic-capture-test-reports
path: |
./TrafficCapture/*/build/reports/
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit d214d06

Please sign in to comment.