-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (47 loc) · 1.56 KB
/
tests.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
41
42
43
44
45
46
47
48
49
50
51
52
name: Tests
on:
pull_request:
push:
branches:
- 'main'
jobs:
unit_tests:
name: 'Unit tests'
runs-on: ubuntu-latest
steps:
- name: 'Check out the repository'
uses: actions/checkout@v4
- name: 'Set up Java'
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: 'Set up Gradle'
uses: gradle/actions/setup-gradle@v4
- name: 'Set up the Android SDK'
uses: android-actions/setup-android@v3
with:
log-accepted-android-sdk-licenses: false
- name: 'Run unit tests'
run: >-
./gradlew
:model:compass:test
:model:core:test
:model:location:test
:model:settings:test
:model:sun:test
:data:compass:testAospRelease :data:compass:testGmsRelease
:data:location:testAospRelease :data:location:testGmsRelease
:data:settings:testAospRelease :data:settings:testGmsRelease
:data:sun:test
:ui:compass:testAospRelease :ui:compass:testGmsRelease
:ui:core:testAospRelease :ui:core:testGmsRelease
:ui:design:testAospRelease :ui:design:testGmsRelease
:ui:location:testAospRelease :ui:location:testGmsRelease
:ui:settings:testAospRelease :ui:settings:testGmsRelease
:ui:sun:testAospRelease :ui:sun:testGmsRelease
koverXmlReport
- name: 'Upload coverage report to Codecov'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}