-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (36 loc) · 1.08 KB
/
main.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install ktlint
run: brew install ktlint
- name: Run ktlint
run: |
ktlint --reporter=checkstyle,output=build/ktlint-report-in-checkstyle-format.xml
- uses: yutailang0119/action-ktlint@v1.0.0
if: always()
with:
xml_path: build/ktlint-report-in-checkstyle-format.xml
- name: Generate dummy configurations
run: cp app/config-example.properties app/debug.properties && cp app/config-example.properties app/release.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Android Lint with Gradle
run: ./gradlew lint
- uses: yutailang0119/action-android-lint@v1.0.2
if: always()
with:
xml_path: app/build/reports/lint-results.xml
- name: Build with Gradle
run: ./gradlew build