-
-
Notifications
You must be signed in to change notification settings - Fork 149
35 lines (32 loc) · 892 Bytes
/
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
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
# Renaming ? Change the README badge.
name: 'Build'
on:
push:
branches:
- main
pull_request:
jobs:
ANDROID_BASE_CHECKS:
name: 'Base Checks'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: gradle
- name: 'Perform base checks'
run: ./gradlew app:assembleDebug library:dokkaJavadoc
ANDROID_UNIT_TESTS:
name: 'Unit Tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
- name: 'Execute unit tests'
run: ./gradlew library:testDebugUnitTest