-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.19 KB
/
build.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
name: CI
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
env:
JAVA_TOOL_OPTIONS: -Xmx5120m
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dkotlin.compiler.execution.strategy=in-process
TERM: dumb
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew assembleDebug
test:
runs-on: ubuntu-latest
needs: build
env:
JAVA_TOOL_OPTIONS: -Xmx3072m
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2 -Dkotlin.compiler.execution.strategy=in-process
TERM: dumb
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
with:
java-version: 1.8
uses: actions/setup-java@v1
- name: Run unit tests
run: ./gradlew test --stacktrace
- name: Unit core android results
uses: actions/upload-artifact@v1
with:
name: Core Android unit tests
path: core-android/build/reports/tests/testDebugUnitTest/index.html