-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (41 loc) · 998 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
46
47
48
49
name: CI
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version:
- "8"
- "9"
- "10"
- "11"
- "12"
- "13"
- "14"
- "15"
- "16"
- "17"
- "18"
steps:
- uses: actions/checkout@master
- name: Setup Test Java Runtime
id: setup-test-jre
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
architecture: x64
- name: Run test suite
run: ./gradlew test
- name: Send code coverage report to coveralls.io
run: ./gradlew jacocoTestReport coveralls
if: env.COVERALLS_REPO_TOKEN && matrix.java-version == '17'
env:
CI_NAME: github-actions
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}