Merge pull request #358 from koraktor/dependabot/maven/org.apache.com… #403
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: Maven CI | |
on: | |
push: | |
paths: | |
- pom.xml | |
- src/main/**/* | |
- .github/workflows/* | |
pull_request: | |
branches: [ master ] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ '11', '17', '21' ] | |
fail-fast: false | |
name: Java ${{ matrix.java }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
cache: 'maven' | |
name: Set up JDK ${{ matrix.java }} | |
- name: Compile with Maven | |
run: mvn compile | |
- name: Test with Maven | |
run: mvn test |