Skip to content

Commit

Permalink
Use upload-artifact@v4 action in GHA workflows (#1626)
Browse files Browse the repository at this point in the history
### Description

This updates the `upload-artifact` and `download-artifact` versions to
v4.

### Context

v3 is deprecated and blocking CI runs.

### Testing

- `./gradlew test`
 
### Documentation

N/A

### Known limitations

N/A
  • Loading branch information
philipliu authored Feb 3, 2025
1 parent b1ad36e commit 37fb58e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sub_essential_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
distribution: 'adopt'

- name: Download anchor-platform.tar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: anchor-platform-tar
path: /home/runner/
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Upload Essential Tests report
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: essential-tests-report
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_extended_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
distribution: 'adopt'

- name: Download anchor-platform.tar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: anchor-platform-tar
path: /home/runner/
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
- name: Upload Extended Tests Report
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: extended-tests-report
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sub_gradle_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Upload anchor-platform.tar to GitHub Artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: anchor-platform-tar
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sub_jacoco_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
distribution: 'adopt'

- name: Download anchor-platform.tar
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: anchor-platform-tar
path: /home/runner/
Expand All @@ -52,7 +52,7 @@ jobs:
#############################################
- name: Gradle Build with unit tests only
if : ${{ inputs.forceRebuild }}
if: ${{ inputs.forceRebuild }}
run: |
cd /home/runner/anchor-platform
./gradlew clean build jacocoTestReport -x essential-tests:test -x extended-tests:test
Expand Down

0 comments on commit 37fb58e

Please sign in to comment.