Skip service tests #1759
Workflow file for this run
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
name: CI and automatic releases | |
on: | |
push: | |
branches-ignore: [gh-pages] | |
jobs: | |
static-checks: | |
name: Static checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
ci: | |
needs: static-checks | |
name: "Run static checks and tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Cache Grade dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- uses: eskatos/gradle-command-action@v1 | |
with: | |
arguments: build | |
- name: Assemble instrumentation tests APK | |
uses: eskatos/gradle-command-action@v1 | |
with: | |
arguments: "app:assembleDebug app:assembleDebugAndroidTest" | |
# Save APK in case we want to run it locally | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: gateway.apk | |
path: app/build/outputs/apk/debug/app-debug.apk | |
- name: Run tests on physical and virtual devices | |
uses: asadmansr/[email protected] | |
with: | |
arg-spec: '.github/data/firebase-test-lab.yml:spec' | |
env: | |
SERVICE_ACCOUNT: ${{ secrets.CI_GCP_SERVICE_ACCOUNT }} | |
release: | |
needs: ci | |
uses: relaycorp/shared-workflows/.github/workflows/android-app-release.yml@main | |
secrets: | |
android_keystore: ${{ secrets.ANDROID_KEYSTORE }} | |
android_keystore_password: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | |
android_key_alias: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }} | |
android_key_password: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} | |
android_publisher_credentials: ${{ secrets.PUBLISHER_GCP_SERVICE_ACCOUNT }} |