-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (29 loc) · 877 Bytes
/
tests.yaml
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
name: Build and Test CI
on: [ push, pull_request ]
jobs:
build:
name: Gradle Build
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle with cache
uses: gradle/actions/setup-gradle@v3
- name: Setup Gradle
run: chmod +x gradlew
- name: Build library
run: bash ./gradlew library:assembleDebug
- name: Build sample
run: bash ./gradlew sample:assembleDebug
- name: Run kltlint in library
run: ./gradlew library:ktlintCheck
- name: Run kltlint in sample
run: ./gradlew sample:ktlintCheck
- name: Unit tests
run: ./gradlew test --stacktrace