-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 998 Bytes
/
ci.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
41
42
43
name: CI
on:
# Trigger the workflow on push only for the main branch
push:
branches:
- main
# Trigger the workflow on any pull requests
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Gradle cache
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run common tests and lint
run: ./gradlew clean shared:checkCommon --parallel --stacktrace -Pskip_gitversion --info
- name: Run Android lint
run: ./gradlew androidApp:ktlintCheck --stacktrace -Pskip_gitversion