@@ -14,11 +14,38 @@ jobs:
14
14
- name : Checkout the code
15
15
uses : actions/checkout@v4
16
16
17
+ - name : Setup JDK
18
+ uses : actions/setup-java@v3
19
+ with :
20
+ distribution : ' temurin'
21
+ java-version : 17
22
+ cache : ' gradle'
23
+
24
+ - name : Load Google Service file
25
+ env :
26
+ DATA : ${{ secrets.GOOGLE_SERVICES_JSON }}
27
+ run : echo $DATA | base64 -di > app/google-services.json
28
+
29
+ - name : Setup Local properties
30
+ env :
31
+ STORE_FILE : ${{ secrets.STORE_FILE }}
32
+ IR_STORE_FILE : ${{ secrets.IR_STORE_FILE }}
33
+ run : echo $STORE_FILE | base64 -di > keys/store_key.jks && \
34
+ echo $IR_STORE_FILE | base64 -di > keys/ir_store_key.jks && \
35
+ echo 'STORE_FILE=keys/store_key.jks' > ./local.properties && \
36
+ echo 'STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}' > ./local.properties && \
37
+ echo 'KEY_ALIAS=${{ secrets.KEY_ALIAS }}' > ./local.properties && \
38
+ echo 'KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}' > ./local.properties && \
39
+ echo 'IR_STORE_FILE=keys/ir_store_key.jks' > ./local.properties && \
40
+ echo 'IR_STORE_PASSWORD=${{ secrets.IR_STORE_PASSWORD }}' > ./local.properties && \
41
+ echo 'IR_KEY_ALIAS=${{ secrets.IR_KEY_ALIAS }}' > ./local.properties && \
42
+ echo 'IR_KEY_PASSWORD=${{ secrets.IR_KEY_PASSWORD }}' > ./local.properties
43
+
17
44
- name : Grant execute permission for gradlew
18
45
run : chmod +x gradlew
19
46
20
47
- name : Run unit tests
21
- run : ./gradlew test
48
+ run : ./gradlew testDebug
22
49
23
50
- name : Upload test report
24
51
uses : actions/upload-artifact@v4
0 commit comments