Merge pull request #154 from ljacqu/dependabot/maven/dependencies/org… #282
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 build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: ['8', '11', '17', '21'] | |
name: Java ${{ matrix.java }} build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn -B --file pom.xml package jacoco:report | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
if: matrix.java == '8' && github.event_name != 'pull_request' | |
with: | |
base-path: src/main/java | |
# The file is optional, but the documentation says it's better to specify it. | |
file: target/site/jacoco/jacoco.xml |