Skip to content

Commit

Permalink
Fix codecov upload for codecov-action v5
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Feb 5, 2025
1 parent d49b44b commit edc78e8
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches:
- "*"
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
Get-CI-Image-Tag:
Expand Down Expand Up @@ -71,13 +69,26 @@ jobs:
su `id -un 1000` -c 'whoami && java -version &&
echo "build and run tests" && ./gradlew build &&
echo "Publish to Maven Local" && ./gradlew publishToMavenLocal'
- name: Upload Coverage Report
if: contains(matrix.java, '21')
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload Coverage Report Artifact
uses: actions/upload-artifact@v4
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
name: coverage-report-linux
path: ./build/reports/jacoco/test/jacocoTestReport.xml

linux-codecov-upload:
needs: build-linux
runs-on: ubuntu-24.04
steps:
- name: Download Coverage Report Artifact
uses: actions/download-artifact@v4
with:
name: coverage-report-linux
path: ./
- name: Upload Coverage Report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./jacocoTestReport.xml

build-windows:
needs: [spotless, javadoc]
Expand Down

0 comments on commit edc78e8

Please sign in to comment.