forked from hamcrest/JavaHamcrest
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.2 KB
/
ci.yaml
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
---
name: Java CI
on: [push]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Default Java/OS
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 7
- name: Gradle Clean Build
run: ./gradlew clean build
test:
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
java: [7, 8, 11, 17, 18-ea, 19-ea]
exclude:
- os: ubuntu-18.04
java: 7
fail-fast: false
max-parallel: 4
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Gradle Clean Build
run: ./gradlew clean build
qa:
name: QA Steps
needs: test
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 7
- name: Gradle JavaDoc
run: ./gradlew javadoc
...