-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1.16 KB
/
main.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
name: Test all supported JDKs on all systems
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 8
distribution: adopt
- name: Build Coverage
run: sh ./gradlew check jacocoTestReport
- name: Upload Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: [11, 17]
os: [windows-latest, macOS-latest, ubuntu-latest]
distribution: [ adopt ]
steps:
- name: Checkout latest code
uses: actions/checkout@v1
- name: Set up ${{ matrix.distribution }} JDK ${{ matrix.java_version }} on ${{ matrix.os }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java_version }}
distribution: ${{ matrix.distribution }}
- name: Test
run: sh ./gradlew check