-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Integrate shared workflows (#729)
- Loading branch information
Showing
5 changed files
with
17 additions
and
68 deletions.
There are no files selected for viewing
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
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 | ||
|
This file was deleted.
Oops, something went wrong.
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
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.
This file was deleted.
Oops, something went wrong.