Update pom.xml #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: Maven build for commits | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [11, 17, 21] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Set up JDK. | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
architecture: x64 | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Install with Maven | |
run: mvn --show-version --errors --batch-mode clean install |