Skip to content

Commit

Permalink
Update GitHub action versions in Java CI with Maven workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkryst committed Oct 21, 2024
1 parent d435449 commit 413a166
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# https://github.com/marketplace/actions/setup-java-jdk
- name: Setup JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
java-package: jdk
architecture: x64

- name: Cache Maven Packages
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
env:
DISPLAY: :1
run: mvn --batch-mode --update-snapshots -Dmaven.javadoc.skip=true verify --file pom.xml

0 comments on commit 413a166

Please sign in to comment.