-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (34 loc) · 995 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
name: CI
on:
push:
paths:
- '**.kts'
- '.github/**'
- 'docs/**'
- 'core/**'
- 'lib/**'
branches-ignore:
- 'master'
- 'docs'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build projects
run: './gradlew build --no-daemon --stacktrace --console=plain --rerun-tasks'
- name: Build core JAR
run: './gradlew core:coreJar --no-daemon --stacktrace --console=plain --rerun-tasks'
- name: Generate code coverage report
run: './gradlew core:jacocoTestReport --no-daemon'
- name: Upload code coverage report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}