-
Notifications
You must be signed in to change notification settings - Fork 83
40 lines (36 loc) · 953 Bytes
/
android.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: Android CI
on:
push:
branches:
- master
- tree/*MAINT
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Copy dummy keys2.txt
shell: bash
run: |
mkdir -p $GITHUB_WORKSPACE/../private_assets
cp $GITHUB_WORKSPACE/src/test/resources/keys2.txt $GITHUB_WORKSPACE/../private_assets
- name: Build with Gradle
run: ./gradlew assembleCurrentDebug
- name: Run unit tests
timeout-minutes: 15
run: ./gradlew testCurrentDebugUnitTest
- name: Upload Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Test output
path: $GITHUB_WORKSPACE/build/reports/tests/testCurrentDebugUnitTest/
# - name: Run lint
# run: ./gradlew lint