-
Notifications
You must be signed in to change notification settings - Fork 161
59 lines (57 loc) · 1.5 KB
/
Android-CI.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
54
55
56
57
58
59
name: PullRequest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
buildTest:
name: Build & Test JDK ${{ matrix.java_version }}
runs-on: macOS-latest
strategy:
matrix:
java_version: [ 11.0.3 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.1
- name: Build project
run: ./gradlew build
- name: Run tests
run: ./gradlew test
Check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [ 11.0.3 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java_version }}
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.1
- name: Code checks
run: ./gradlew check
- name: Archive Lint report
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: IP-Cam-Lint-report
path: app/build/reports/lint-results.html