E2E #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E | |
| on: | |
| workflow_dispatch: | |
| env: | |
| TERM: xterm-256color | |
| FORCE_COLOR: 1 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: "adopt" | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Decode google-services.json | |
| run: echo "$GOOGLE_SERVICES_JSON_BASE64" | base64 -d > app/google-services.json | |
| env: | |
| GOOGLE_SERVICES_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON_BASE64 }} | |
| - name: Build debug app | |
| env: | |
| CHATWOOT_API: ${{ secrets.CHATWOOT_API }} | |
| E2E: true | |
| run: ./gradlew assembleDevDebug | |
| - name: Rename APK | |
| run: | | |
| apk=$(find app/build/outputs/apk/dev/debug -name 'bitkit-android-*-devDebug.apk') | |
| mv "$apk" app/build/outputs/apk/dev/debug/bitkit_e2e.apk | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bitkit-e2e-apk | |
| path: app/build/outputs/apk/dev/debug/bitkit_e2e.apk | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Clone E2E tests | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: synonymdev/bitkit-e2e-tests | |
| path: bitkit-e2e-tests | |
| - name: Download APK | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: bitkit-e2e-apk | |
| path: bitkit-e2e-tests/aut | |
| - name: List APK directory contents | |
| run: ls -l bitkit-e2e-tests/aut |