132 re structure off device classes into a separate module #509
This file contains 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
# This is a basic workflow to help you get started with Actions | |
name: CI | |
on: | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
java-version: 11 | |
distribution: corretto | |
- 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 |