Skip to content

Commit

Permalink
chore: Integrate shared workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Jan 25, 2024
1 parent c730bc4 commit efa97a1
Showing 1 changed file with 6 additions and 38 deletions.
44 changes: 6 additions & 38 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,20 @@
name: CI and automatic releases
on:
pull_request:
push:
branches-ignore: [gh-pages]
branches: [master]
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 --scan
- name: Assemble instrumentation tests APK
uses: eskatos/gradle-command-action@v1
with:
arguments: "app:assembleDebug app:assembleDebugAndroidTest"
- name: Run tests on physical and virtual devices
uses: asadmansr/Firebase-Test-Lab-Action@v1.0
with:
arg-spec: 'app/firebase-test-lab.yml:spec'
env:
SERVICE_ACCOUNT: ${{ secrets.CI_GCP_SERVICE_ACCOUNT }}
uses: relaycorp/shared-workflows/.github/workflows/android-app-ci.yml@main
secrets:
gcp_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_NAME }}
android_key_alias: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }}
android_key_password: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
android_publisher_credentials: ${{ secrets.PUBLISHER_GCP_SERVICE_ACCOUNT }}

0 comments on commit efa97a1

Please sign in to comment.