Skip to content

Commit

Permalink
Move upload-artifact outside of the container
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Nov 7, 2024
1 parent 3ec460a commit 06ba7ad
Showing 1 changed file with 31 additions and 11 deletions.
42 changes: 31 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,38 @@ jobs:
chown -R 1000:1000 `pwd`
su `id -un 1000` -c "./gradlew build && ./gradlew publishToMavenLocal"
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v3
if: always()
- name: Save Reports
id: linux-save-reports
uses: actions/cache/save@v4
with:
name: linux-JDK${{ matrix.java }}-reports
path: |
./build/reports/
path: ${{ github.workspace }}/build/reports/
key: ${{ github.sha }}-linux-reports

upload-linux-artifacts:
needs: build-job-scheduler-linux
runs-on: ubuntu-latest
strategy:
matrix:
java: [21, 23]
if: always()
steps:
- uses: actions/cache/restore@v4
id: linux-restore-reports
with:
path: ${{ github.workspace }}/build/reports/
key: ${{ github.sha }}-linux-reports

- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: linux-JDK${{ matrix.java }}-reports
path: |
./build/reports/
build-job-scheduler-MacOS:
strategy:
Expand Down

0 comments on commit 06ba7ad

Please sign in to comment.