Merge pull request #451 from nosan/dependabot/maven/org.apache.maven.… #699
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: "build" | |
on: | |
push: | |
paths-ignore: | |
- '**.adoc' | |
- '**.md' | |
- '.github/**' | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**.adoc' | |
- '**.md' | |
- '.github/**' | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
java: [ 11 ] | |
os: [ ubuntu-latest, macos-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ matrix.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ matrix.os }}-maven- | |
- name: Maven Clean Verify | |
run: mvn -B clean verify | |
- name: Upload to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./target/site/jacoco/jacoco.xml | |
flags: ${{ matrix.os }}-jdk${{ matrix.java }} |