diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-04-15 03:20:07 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-04-15 03:20:07 +0000 |
| commit | eb78d317c722234a7ef2c501c68c9aa730ec2758 (patch) | |
| tree | ea5c8ff76142b22acee86e1b0417a05a0d2748c3 /.github/workflows | |
| parent | 3b4a031bd06a20018352cf3c650448cf97b9ba36 (diff) | |
ci: remove smoke-test job
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/android.yml | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 5d4c490..9bc3caf 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -36,15 +36,6 @@ jobs: groups: testers file: android-app/app/build/outputs/apk/debug/app-debug.apk - - name: Upload test APKs (shared with smoke-test job) - uses: actions/upload-artifact@v4 - with: - name: test-apks - retention-days: 1 - path: | - android-app/app/build/outputs/apk/debug/app-debug.apk - android-app/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk - - name: Notify claudomator if: always() env: @@ -66,74 +57,3 @@ jobs: -H "X-Hub-Signature-256: sha256=${SIG}" \ "${CLAUDOMATOR_WEBHOOK_URL}/api/webhooks/github" \ -d "$PAYLOAD" - - smoke-test: - runs-on: ubuntu-latest - # Run after build succeeds — no point spinning up an emulator for a broken build - needs: build - - steps: - - uses: actions/checkout@v4 - - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: gradle - - - name: Grant execute permission for gradlew - run: chmod +x android-app/gradlew - - # Restore pre-built APKs so the emulator job skips the compile step - - name: Download test APKs - uses: actions/download-artifact@v4 - with: - name: test-apks - path: . # preserves android-app/app/build/outputs/… directory structure - - - name: Enable KVM (faster emulator) - run: | - echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules - sudo udevadm control --reload-rules - sudo udevadm trigger --name-match=kvm - - # -x assembleDebug -x assembleDebugAndroidTest: skip recompile, use downloaded APKs - - name: Run smoke tests on emulator - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 30 - arch: x86_64 - profile: pixel_3a - script: ./gradlew connectedDebugAndroidTest -x assembleDebug -x assembleDebugAndroidTest - working-directory: android-app - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v4 - with: - name: smoke-test-results - retention-days: 7 - path: android-app/app/build/outputs/androidTest-results/ - - - name: Notify claudomator - if: always() - env: - CLAUDOMATOR_WEBHOOK_URL: ${{ secrets.CLAUDOMATOR_WEBHOOK_URL }} - CLAUDOMATOR_WEBHOOK_SECRET: ${{ secrets.CLAUDOMATOR_WEBHOOK_SECRET }} - run: | - PAYLOAD=$(jq -n \ - --arg action "completed" \ - --arg conclusion "${{ job.status }}" \ - --arg name "${{ github.workflow }} / smoke-test" \ - --arg repo "${{ github.repository }}" \ - --arg sha "${{ github.sha }}" \ - --arg run_id "${{ github.run_id }}" \ - '{action: $action, workflow_run: {conclusion: $conclusion, name: $name, head_sha: $sha, id: ($run_id | tonumber)}, repository: {full_name: $repo}}') - SIG=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "$CLAUDOMATOR_WEBHOOK_SECRET" | awk '{print $2}') - curl -sf -X POST \ - -H "Content-Type: application/json" \ - -H "X-GitHub-Event: workflow_run" \ - -H "X-Hub-Signature-256: sha256=${SIG}" \ - "${CLAUDOMATOR_WEBHOOK_URL}/api/webhooks/github" \ - -d "$PAYLOAD" |
