forked from synthetichealth/synthea
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (46 loc) · 1.26 KB
/
ci-build-test.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
on: [push, pull_request]
jobs:
check_java_latest:
runs-on: ubuntu-latest
name: Java 16
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 16
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-jdk16-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-jdk16
- name: Compile with Gradle
run: ./gradlew assemble
check_java8:
runs-on: ubuntu-latest
name: Java 8
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
- name: Gradle cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-jdk8-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-jdk8
- name: Compile with Gradle
run: ./gradlew assemble
- name: Test
run: ./gradlew check
- name: Code coverage
uses: codecov/codecov-action@v1