Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dllewellyn authored Sep 24, 2023
1 parent 40cc4e3 commit 2fe5498
Showing 1 changed file with 1 addition and 59 deletions.
60 changes: 1 addition & 59 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,67 +22,9 @@ jobs:
- uses: actions/checkout@v2
- name: Build plugin
run: ./gradlew :safeToRunBuilder:shadowJar --no-daemon
- name: Build InputValidation
run: ./gradlew :safeToRunInternal:build
- name: Build Logger
run: ./gradlew :safeToRunLogger:build
- name: Build InputValidation
run: ./gradlew :safeToRunInputValidation:build
- name: Build Core
run: ./gradlew :safeToRunCore:build
- name: Run build
run: ./gradlew build assembleDebug assembleDebugAndroidTest --no-daemon
env:
SERVER_URL: 'http://example.com'
API_KEY: 'apikey'
- name: Upload Android Test APK
uses: actions/upload-artifact@v1
with:
name: app-debug-androidTest
path: app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
- name: Upload app APK
uses: actions/upload-artifact@v1
with:
name: app-debug
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload Android Test APK (Pin screen)
uses: actions/upload-artifact@v1
with:
name: app-debug-androidTest-pin
path: safetorunpinscreen/build/outputs/apk/androidTest/debug/safetorunpinscreen-debug-androidTest.apk
- name: Upload app APK (Pin screen)
uses: actions/upload-artifact@v1
with:
name: app-debug-pin
path: app/build/outputs/apk/debug/app-debug.apk

firebaseTest:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- name: Download app APK
uses: actions/download-artifact@v1
with:
name: app-debug

- name: Download Android test APK
uses: actions/download-artifact@v1
with:
name: app-debug-androidTest

- name: Login to Google Cloud
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.GCLOUD_AUTH }}
- name: print secrets
run: |
echo $AUTH_KEY >> google-service-key.json
shell: bash
env:
AUTH_KEY : ${{secrets.GCLOUD_AUTH}}
- name: Set project id
run: gcloud config set project ${{ secrets.FIREBASE_PROJECT_ID }}

- name: Run Instrumentation Tests in Firebase Test Lab
run: gcloud firebase test android run --type instrumentation --app app-debug/app-debug.apk --test app-debug-androidTest/app-debug-androidTest.apk --device-ids=redfin,star2lte,judypn --os-version-ids=28,29,30

0 comments on commit 2fe5498

Please sign in to comment.