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

linux-codecov-upload:
needs: build-linux
runs-on: ubuntu-24.04
steps:
- name: Debug where I am
run: |
pwd
ls -al
- name: Download Coverage Report Artifact
uses: actions/download-artifact@v4
with:
name: coverage-report-linux-jdk21
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 eb53096

Please sign in to comment.