Skip to content

Commit

Permalink
Update GitHub actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Apr 20, 2024
1 parent 4d45182 commit fdcda2b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
Expand All @@ -50,7 +50,7 @@ jobs:
run: mvn verify -e -B -V -DdistributionFileName=apache-maven

- name: Upload built Maven
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: built-maven
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
echo "REPO_USER=$target_user" >> $GITHUB_ENV
- name: Checkout maven-integration-testing
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ env.REPO_USER }}/maven-integration-testing
path: maven-integration-testing/
Expand All @@ -108,21 +108,21 @@ jobs:


- name: Set up cache for ~/.m2/repository
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: it-m2-repo-${{ matrix.os }}-${{ hashFiles('maven-integration-testing/**/pom.xml') }}
restore-keys: |
it-m2-repo-${{ matrix.os }}-
- name: Download built Maven
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: built-maven
path: built-maven/

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
Expand Down

0 comments on commit fdcda2b

Please sign in to comment.