-
Notifications
You must be signed in to change notification settings - Fork 73
53 lines (51 loc) · 1.31 KB
/
Android-CI-Espresso.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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: PullRequest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
buildTest:
name: Build & Test JDK ${{ matrix.java_version }}
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.2
- name: Build project
run: ./gradlew assembleDebug
- name: Run tests
run: ./gradlew test
Check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.0.7
- name: Code checks
run: ./gradlew check --stacktrace
- name: Archive Lint report
uses: actions/[email protected]
if: ${{ always() }}
with:
name: LEGO-Lint-report
path: app/build/reports/lint-results.html