Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload TrafficCapture test results as artifacts in GitHub workflow #628

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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