-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.11 KB
/
Copy pathandroid-tests.yml
File metadata and controls
43 lines (35 loc) · 1.11 KB
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
name: Android Tests
on:
pull_request:
permissions:
contents: read
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "9.5.0"
# Optional: persists the Gradle configuration cache across runs when
# a GRADLE_ENCRYPTION_KEY secret exists; harmless when unset. Safe
# here: test runs have no keystore, so their configuration cache
# contains no signing data (unlike Cut Release, which never sets this).
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Run unit tests
working-directory: android_app
run: gradle test
- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: android_app/app/build/reports/tests/