mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 21:57:56 +00:00
a294aa1a6b
Security hardened release: - Code obfuscation enabled (minifyEnabled=true, shrinkResources=true) - Sensitive files excluded (google-services.json, keystores) - Branch.io key moved to BuildConfig placeholder - Updated dependencies: OkHttp 4.12.0, Gson 2.10.1, BouncyCastle 1.77 - Comprehensive ProGuard rules for crypto wallet - Navigation 2.7.7, Lifecycle 2.7.0, ConstraintLayout 2.1.4
79 lines
2.1 KiB
YAML
79 lines
2.1 KiB
YAML
name: Build test and deploy debug apk
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
uses: pezkuwichain/pezkuwi-wallet-android/.github/workflows/android_build.yml@main
|
|
with:
|
|
branch: main
|
|
gradlew-command: assembleDebug
|
|
secrets: inherit
|
|
|
|
upload-to-firebase:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Download built artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: apk
|
|
path: app
|
|
|
|
- name: 🗳 Upload to Firebase
|
|
uses: ./.github/workflows/upload-to-firebase
|
|
with:
|
|
appId: ${{ secrets.ANDROID_DEBUG_FIREBASE_APP_ID }}
|
|
firebase-token: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
|
|
releaseNotes: ${{ github.event.head_commit.message }}
|
|
test-groups: dev-team
|
|
upload-file: app/debug/app-debug.apk
|
|
|
|
upload-to-s3:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
outputs:
|
|
s3_url: ${{ steps.s3_upload.outputs.s3_url }}
|
|
env:
|
|
S3_BUCKET: s3://pezkuwi-wallet-android-app
|
|
S3_REGION: nl-ams
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Download built artifact
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: apk
|
|
path: app
|
|
|
|
- name: ⚙️ Upload to S3
|
|
id: s3_upload
|
|
uses: ./.github/workflows/upload-to-s3
|
|
with:
|
|
s3_region: ${{ env.S3_REGION }}
|
|
s3_access_key: ${{ secrets.SCW_ACCESS_KEY }}
|
|
s3_secret_key: ${{ secrets.SCW_SECRET_KEY }}
|
|
s3_bucket: ${{ env.S3_BUCKET }}
|
|
upload_file: app/debug/app-debug.apk
|
|
|
|
- name: Show S3 URL
|
|
run: |
|
|
echo "App uploaded to: ${{ steps.s3_upload.outputs.s3_url }}"
|
|
|
|
appium-mobile-tests:
|
|
needs: [upload-to-s3]
|
|
if: ${{ always() && needs.upload-to-s3.result == 'success' }}
|
|
uses: ./.github/workflows/appium-mobile-tests.yml
|
|
with:
|
|
app_url: ${{ needs.upload-to-s3.outputs.s3_url }}
|
|
test_grep: "android"
|
|
allure_job_run_id: ""
|
|
secrets:
|
|
WORKFLOW_TOKEN: ${{ secrets.PAT_TOKEN }}
|
|
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
|