Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
* Use v4
* Use setup-java's cache instead of actions/cache
  • Loading branch information
ctubbsii committed Nov 25, 2024
1 parent db4a185 commit 39dd940
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,40 +34,34 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
- name: Cache local maven repository
uses: actions/cache@v2
with:
path: |
~/.m2/repository/
!~/.m2/repository/org/apache/fluo
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: adopt
java-version: 17
cache: 'maven'
- name: Build with Maven
run: mvn -B -V -e -ntp "-Dstyle.color=always" -DskipITs verify javadoc:jar
env:
MAVEN_OPTS: -Djansi.force=true
- name: Upload unit test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: surefire-reports
path: ./**/target/surefire-reports/
if-no-files-found: ignore
- name: Upload integration test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: failsafe-reports
path: ./**/target/failsafe-reports/
if-no-files-found: ignore
- name: Upload mini test logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: mini-tests-logs
path: ./**/target/**/mini-tests/**/logs/
Expand Down

0 comments on commit 39dd940

Please sign in to comment.