Skip to content

Commit

Permalink
chore: Integrate shared workflows (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Jan 24, 2024
1 parent 5dd0210 commit dab71eb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 68 deletions.
49 changes: 5 additions & 44 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,13 @@
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
- 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 }}
uses: relaycorp/shared-workflows/.github/workflows/android-app-ci.yml@main
secrets:
gcp_service_account: ${{ secrets.CI_GCP_SERVICE_ACCOUNT }}

release:
needs: ci
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/pr-title-validation.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Process PRs

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
pr-ci:
uses: relaycorp/shared-workflows/.github/workflows/pr-ci.yml@main
File renamed without changes.
9 changes: 0 additions & 9 deletions package.json

This file was deleted.

0 comments on commit dab71eb

Please sign in to comment.