Merge pull request #62 from l0s/dependabot/maven/org.apache.maven.plu… #123
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
name: Continuous Integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ 8, 11, 17 ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
- name: Cache Maven Packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: m2-${{ runner.os }}-${{ matrix.java-version }}-${{ hashFiles('pom.xml') }} | |
restore-keys: | | |
m2-${{ runner.os }}-${{ matrix.java-version }} | |
m2-${{ runner.os }} | |
m2 | |
- run: mvn clean install |