Skip to content

Commit

Permalink
Make sure gradle check runs against the whole project
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed May 23, 2024
1 parent 9dfe4f1 commit 6f70261
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/gradle-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ jobs:
gradle-home-cache-cleanup: true

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

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

Expand All @@ -40,11 +38,18 @@ jobs:
with:
name: traffic-capture-test-reports
path: |
./TrafficCapture/*/build/reports/
./TrafficCapture*/*/build/reports/
- uses: actions/upload-artifact@v4
if: always()
with:
name: RFS-test-reports
path: |
./RFS*/*/build/reports/
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: "TrafficCapture/**/jacocoTestReport.xml"
files: "**/jacocoTestReport.xml"
flags: unittests
fail_ci_if_error: false

0 comments on commit 6f70261

Please sign in to comment.