-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 791 Bytes
/
android-test.yml
File metadata and controls
33 lines (31 loc) · 791 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
name: android-test
on:
push:
branches: [ develop ]
pull_request:
branches:
- develop
jobs:
test:
name: Android Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: set up JDK 21
uses: actions/setup-java@v5
with:
java-version: 21
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle test
run: ./gradlew test --stacktrace
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: always()
with:
report_paths: '**/build/test-results/TEST-*.xml'