-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.41 KB
/
android.yml
File metadata and controls
48 lines (44 loc) · 1.41 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
name: Android CI
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
build:
runs-on: macos-latest
steps:
- name: Check out Repository
uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
cache: gradle
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Create google-services
run: |
echo '${{ secrets.GOOGLE_SERVICES }}' > ./RunWithMe/presentation/google-services.json
- name: Access KAKAOAPIKEY
run: echo KAKAOAPIKEY=\"$KAKAOAPIKEY\" > ./RunWithMe/local.properties
env:
KAKAOAPIKEY: ${{ secrets.KAKAOAPIKEY }}
- name: Access NAVERAPIKEY
run: echo NAVERAPIKEY=\"$NAVERAPIKEY\" > ./RunWithMe/local.properties
env:
NAVERAPIKEY: ${{ secrets.NAVERAPIKEY }}
- name: Access BASEURL
run: echo "BASEURL={{ secrets.BASEURL }}" > ./RunWithMe/local.properties
- name: Grant execute permissions for gradlew
run: chmod +x RunWithMe/gradlew
- name: Build and run tests
run: |
cd RunWithMe
./gradlew clean build test
if [ $? -eq 0 ]; then
echo "All tests passed successfully."
else
echo "Some tests failed. Please check the test results."
fi