-
Notifications
You must be signed in to change notification settings - Fork 18
139 lines (113 loc) · 3.44 KB
/
build-and-test.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: build-and-test
on: [push]
jobs:
android_build_apk:
name: Build Android lib APK
runs-on: ubuntu-latest
container: fabernovel/android:api-29-v1.1.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Build APK
working-directory: globallydynamic-android-lib
run: ./gradlew assembleDebug
android_build_test_apk:
name: Build Android lib test APK
runs-on: ubuntu-latest
container: fabernovel/android:api-29-v1.1.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Build test APK
working-directory: globallydynamic-android-lib
run: ./gradlew assembleAndroidTest
android_lint:
name: Run Android lib lint
runs-on: ubuntu-latest
container: fabernovel/android:api-29-v1.1.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Configure Gradle
working-directory: .github/scripts
run: ./configure_gradle
- name: Run lint
working-directory: globallydynamic-android-lib
run: ./gradlew lint
android_unit_tests:
name: Run Android lib unit tests
runs-on: ubuntu-latest
container: fabernovel/android:api-29-v1.1.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Run tests
working-directory: globallydynamic-android-lib
run: ./gradlew test
server_tests:
name: Run server lib tests
runs-on: ubuntu-latest
container: openjdk:17-oracle
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Run tests
working-directory: globallydynamic-server-lib
run: ./gradlew test
gradle_tests:
name: Run gradle plugin tests
runs-on: ubuntu-latest
container: jeppeman/globallydynamic-studio:as-2022.2.1.20
env:
ANDROID_SDK_ROOT: /opt/android/sdk
JAVA_HOME: /opt/android-studio/jre
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Run tests
working-directory: globallydynamic-gradle-plugin
run: ./gradlew test
build_studio_plugin:
name: Build studio plugin
runs-on: ubuntu-latest
container: jeppeman/globallydynamic-studio:as-2022.2.1.20
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Run tests
working-directory: globallydynamic-studio-plugin
run: ./gradlew buildPlugin
studio_tests:
name: Run studio plugin tests
runs-on: ubuntu-latest
container: jeppeman/globallydynamic-studio:as-2022.2.1.20
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bootstrap
working-directory: .github/scripts
run: ./bootstrap_env
- name: Run tests
working-directory: globallydynamic-studio-plugin
run: ./gradlew test