Skip to content

Commit 2bc080c

Browse files
committed
Updated: ci.yaml
1 parent 26e3121 commit 2bc080c

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/ci.yaml

+28-1
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,38 @@ jobs:
1414
- name: Checkout the code
1515
uses: actions/checkout@v4
1616

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+
1744
- name: Grant execute permission for gradlew
1845
run: chmod +x gradlew
1946

2047
- name: Run unit tests
21-
run: ./gradlew test
48+
run: ./gradlew testDebug
2249

2350
- name: Upload test report
2451
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)