-
Notifications
You must be signed in to change notification settings - Fork 24
66 lines (52 loc) · 1.5 KB
/
continuous-integration.yml
File metadata and controls
66 lines (52 loc) · 1.5 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
pull_request:
branches: [main]
types:
- opened
- reopened
- synchronize
- ready_for_review
permissions:
contents: read
pull-requests: write
checks: write
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-XX:+HeapDumpOnOutOfMemoryError"
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
unit_tests:
name: "Unit Tests"
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 60
steps:
- name: "Git Checkout"
uses: actions/checkout@v4
- name: "Create keystore.ks"
run: 'echo "${{secrets.KEYSTORE_FILE}}" | base64 -d > ./android/app/keystore.ks'
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: "Lint Project"
run: "support/scripts/lint"
- name: "Build and Run Unit Tests"
run: "support/scripts/unit-test"
- name: "Unit Test Results"
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
**/build/reports/**/*