Skip to content

Commit a8f106d

Browse files
authored
Fixes #57: Integrate GitHub actions (#68)
1 parent d6032a2 commit a8f106d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/check_compile.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run lints and build
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
build_and_checks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Cache files
13+
uses: actions/cache@v2
14+
with:
15+
path: |
16+
~/.gradle/caches
17+
~/.gradle/wrapper
18+
~/.android/build-cache
19+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle-wrapper.properties') }}
20+
restore-keys: |
21+
${{ runner.os }}-gradle-
22+
- name: Gradle Initialization
23+
run: ./gradlew
24+
- name: Detekt
25+
run: ./gradlew detekt
26+
- name: Upload Detekt report
27+
uses: actions/upload-artifact@v2
28+
if: failure()
29+
with:
30+
name: Detekt report
31+
path: build/reports/detekt/detekt.html
32+
- name: Build
33+
run: ./gradlew build

0 commit comments

Comments
 (0)