forked from Tommasov/MG4_Simple_Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 990 Bytes
/
Copy pathtests.yml
File metadata and controls
40 lines (33 loc) · 990 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
33
34
35
36
37
38
39
40
name: Tests
# JVM unit tests — no emulator, no vehicle. Blocking: the OTA gates (host allowlist,
# version comparison) decide what code lands on a head unit, so a red test must never
# reach a published APK.
on:
push:
branches: [main, master, "feat/**", "feature/**"]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
unit-tests:
name: Unit tests (JVM)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run unit tests
run: |
chmod +x gradlew
./gradlew testStableDebugUnitTest testUnstableDebugUnitTest --no-daemon
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-reports
path: app/build/reports/tests/