-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 811 Bytes
/
tests.yml
File metadata and controls
32 lines (26 loc) · 811 Bytes
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
name: Tests
on:
pull_request:
branches: [ "main", "master" ]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Install Android SDK CMake
run: |
echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "cmake;3.22.1"
echo "$ANDROID_HOME/cmake/3.22.1/bin" >> $GITHUB_PATH
- name: Run unit tests
env:
# The example module requires a bugsplat.database value to configure.
# CI doesn't upload symbols, so a placeholder is fine.
BUGSPLAT_DATABASE: fred
run: ./gradlew :app:testDebugUnitTest --no-daemon