Skip to content

Commit

Permalink
πŸ‘·β€β™‚οΈ Building template with Java 17 on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Dec 4, 2021
1 parent 0635cf5 commit 2193ad2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,27 @@ jobs:
with:
submodules: 'true'

- name: 'Set up Java'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'

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

- name: 'Set up Java 17'
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'

- name: 'Build Template'
run: mvn --no-transfer-progress -B --file oss-quickstart-simple-template/pom.xml verify

- name: 'Set up Java 11'
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'zulu'

- name: 'Build Archetype'
run: mvn --no-transfer-progress -B --file pom.xml verify

0 comments on commit 2193ad2

Please sign in to comment.