-
Notifications
You must be signed in to change notification settings - Fork 17
65 lines (56 loc) · 1.79 KB
/
test.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
59
60
61
62
63
64
65
name: Tests
on:
# if pushed directly to the master
push:
branches:
- master
- release/*
- ci/*
# on a pull request
pull_request:
branches:
- master
- release/*
- ci/*
jobs:
# Run unit tests and submit Coverage Report
unit-test:
name: Standard Unit Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check
- name: Build Coverage Report
uses: eskatos/gradle-command-action@v1
with:
arguments: coverageReport
- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/coverageReport/coverageReport.xml
# Make sure it works with all standard JVMs on main OSes
platform-test:
name: Java ${{ matrix.java }} on ${{ matrix.os }}
continue-on-error: ${{ matrix.java != '17' }}
strategy:
matrix:
java: ["17", "21"]
os: ["windows-latest", "macos-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Check
uses: eskatos/gradle-command-action@v1
with:
arguments: check