Updated Enforcer rules #134
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: jacoco | |
on: | |
push: | |
branches: | |
- '*' | |
- '**/*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Set up JDK 9 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 9 | |
- name: Cache .m2 | |
uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven | |
- name: Prepare mvnw | |
run: chmod +x ./mvnw | |
- name: Build | |
run: ./mvnw verify jacoco:report-aggregate -B -q | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1.0.2 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
file: target/site/jacoco-aggregate/jacoco.xml |