Skip to content

Commit

Permalink
simplify maven-ci workflow using setup-java cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang committed Oct 14, 2024
1 parent d74606d commit 78010f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@ jobs:
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'

- uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
distribution: 'temurin'
cache: maven

- name: Maven build
run: mvn --batch-mode --update-snapshots --fail-fast tidy:check com.mycila:license-maven-plugin:check com.github.spotbugs:spotbugs-maven-plugin:check verify

0 comments on commit 78010f7

Please sign in to comment.