File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : E2E
2+
3+ on :
4+ workflow_dispatch :
5+
6+ env :
7+ TERM : xterm-256color
8+ FORCE_COLOR : 1
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Setup Java
19+ uses : actions/setup-java@v4
20+ with :
21+ java-version : " 17"
22+ distribution : " adopt"
23+
24+ - name : Setup Gradle
25+ uses : gradle/actions/setup-gradle@v4
26+
27+ - name : Decode google-services.json
28+ run : echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json
29+ env :
30+ GOOGLE_SERVICES_JSON_BASE64 : ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }}
31+
32+ - name : Build debug app
33+ env :
34+ CHATWOOT_API : ${{ secrets.CHATWOOT_API }}
35+ E2E : true
36+ run : ./gradlew assembleDevDebug
37+
38+ - name : Upload APK
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : bitkit-e2e-apk
42+ path : app/build/outputs/apk/dev/debug/bitkit-android-11-devDebug.apk
43+
44+ e2e-tests :
45+ runs-on : ubuntu-latest
46+ needs : build
47+
48+ steps :
49+ - name : Clone E2E tests
50+ uses : actions/checkout@v4
51+ with :
52+ repository : synonymdev/bitkit-e2e-tests
53+ path : bitkit-e2e-tests
54+
55+ - name : Download APK
56+ uses : actions/download-artifact@v4
57+ with :
58+ name : bitkit-e2e-apk
59+ path : bitkit-e2e-tests/aut
60+
61+ - name : Rename APK
62+ run : mv bitkit-e2e-tests/aut/bitkit-android-11-devDebug.apk bitkit-e2e-tests/aut/bitkit_e2e.apk
63+
64+ - name : List APK directory contents
65+ run : ls -l bitkit-e2e-tests/aut
You can’t perform that action at this time.
0 commit comments