Modernize GH Action CI (#1812)
This commit is contained in:
parent
fd9376d5bc
commit
8ddb3bf39a
|
|
@ -19,26 +19,20 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
|
distribution: 'temurin'
|
||||||
- name: Cache dependencies
|
cache: 'maven'
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven
|
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Pjacoco clean verify -B -V --no-transfer-progress ${{ matrix.flags }}
|
run: mvn -Pjacoco clean verify -B -V --no-transfer-progress ${{ matrix.flags }}
|
||||||
|
|
||||||
- name: Codecov coverage
|
- name: Codecov coverage
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
file: '*jacoco.xml'
|
file: '*jacoco.xml'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue