-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (47 loc) · 1.28 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
49
name: "Build and Report Generation"
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew build
report-generation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Java 11
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
- run: ./gradlew koverXmlReport
- name: Upload Ion Schema Code Coverage
uses: codecov/codecov-action@v3
with:
file: ion-schema/build/reports/kover/report.xml
- name: Upload CLI Code Coverage
uses: codecov/codecov-action@v3
with:
file: cli/build/reports/kover/report.xml