-
Notifications
You must be signed in to change notification settings - Fork 92
76 lines (74 loc) · 2.04 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
name: HAL Console CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
quick-build:
name: HAL build w/o GWT compilation on JDK 8
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
m2-
- uses: actions/checkout@v2
- name: Set up JDK8
uses: AdoptOpenJDK/install-jdk@v1
with:
version: 8
impl: hotspot
- name: Build
run: mvn -U -B -fae -P skip-gwt clean install
- name: Tar Maven Repo
shell: bash
run: tar -czf maven-repo.tgz -C ~ .m2/repository
- name: Persist Maven Repo
uses: actions/upload-artifact@v1
with:
name: maven-repo
path: maven-repo.tgz
- uses: actions/upload-artifact@v2
if: failure()
with:
name: surefire-reports-build
path: '**/surefire-reports/*'
test-matrix:
name: HAL-jdk${{ matrix.jdk }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: quick-build
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest]
jdk: [8, 11]
steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: AdoptOpenJDK/install-jdk@v1
with:
version: ${{ matrix.jdk }}
impl: hotspot
- name: Download Maven Repo
uses: actions/download-artifact@v1
with:
name: maven-repo
path: .
- name: Extract Maven Repo
shell: bash
run: tar -xzf maven-repo.tgz -C ~
- name: Run Tests
run: mvn -U -B -fae -P skip-gwt test
- uses: actions/upload-artifact@v2
if: failure()
with:
name: surefire-reports-${{ matrix.module }}-JDK${{ matrix.jdk }}-${{ matrix.os }}
path: '**/surefire-reports/*'