-
Notifications
You must be signed in to change notification settings - Fork 164
37 lines (33 loc) · 1007 Bytes
/
main-status.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: main status
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
jdk: [11, 17]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.jdk }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk${{ matrix.jdk }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-jdk${{ matrix.jdk }}-maven-
- name: Build
run: mvn -B -U -T 2 clean install -Pquick,-formatting
- name: Run all tests
run: mvn -B verify -P-skipSlowTests,-formatting -Dmaven.javadoc.skip=true -Djapicmp.skip -Denforcer.skip=true -Danimal.sniffer.skip=true
- name: Publish Test Report
if: failure()
uses: scacap/action-surefire-report@v1
with:
check_name: Test report - main status - ${{ matrix.jdk }}