Merge pull request #270 from ljacqu/dependabot/maven/dependencies/org… #49
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
# Builds the project with Java 8. | |
name: Java 8 build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
coveralls_repo_token: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn -B --file pom.xml package jacoco:report | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
if: github.event_name != 'pull_request' | |
with: | |
base-path: src/main/java | |
# Note the path: need to specify the right Maven module | |
file: injector/target/site/jacoco/jacoco.xml |