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 43e9d28
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 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,33 @@ 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 Artifact
uses: actions/upload-artifact@v4
with:
name: coverage-report-linux
path: ./coverage.xml
- name: Upload Coverage Report
if: contains(matrix.java, '21')
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
files: ./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: ./coverage.xml

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

0 comments on commit 43e9d28

Please sign in to comment.