-
Notifications
You must be signed in to change notification settings - Fork 27
45 lines (45 loc) · 1010 Bytes
/
ci.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
38
39
40
41
42
43
44
45
name: Java CI
on:
pull_request:
paths:
- '**/*.java'
- '**/*.xml'
- '**/*.json'
- '**/*.properties'
- '**/*.yml'
push:
branches: [ main ]
paths:
- '**/*.java'
- '**/*.xml'
- '**/*.json'
- '**/*.properties'
- '**/*.yml'
workflow_dispatch: { }
jobs:
build:
name: Build & Verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Build
id: build
run: mvn -B -DskipTests -T1C clean verify
- name: Test
id: test
timeout-minutes: 20
run: >
mvn -B verify
- name: Archive Test Results on Failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results
path: target/surefire-reports/
retention-days: 7