Modernize GH Action CI (#1812)

This commit is contained in:
offa 2021-12-14 12:07:51 +00:00 committed by GitHub
parent fd9376d5bc
commit 8ddb3bf39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 11 deletions

View File

@ -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'