Run Integration Tests #614
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: Run Integration Tests | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
workflow_dispatch: | |
inputs: | |
monitor_permissions: | |
type: boolean | |
description: Monitor Permissions | |
required: false | |
default: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Run Integration Tests | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: 'write' | |
steps: | |
- uses: GitHubSecurityLab/actions-permissions/monitor@v1 | |
if: ${{ github.event.inputs.monitor_permissions == 'true' }} | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- id: setup-cloud | |
uses: ./.github/actions/setup-cloud | |
with: | |
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY }} | |
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_ID }} | |
setup_gcloud: false | |
- uses: ./.github/actions/setup-gradle | |
- name: Run Gradle Tasks | |
id: gradle_build | |
env: | |
FIREBASE_ANDROID_APP_ID: ${{ secrets.firebase_android_app_id }} | |
GOOGLE_SERVICE_ACCOUNT_ID: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_ID }} | |
INTEGRATION_API_KEY: ${{ secrets.integration_api_key }} | |
run: ./gradlew cloud-run:integrationTest --console=plain | |
- name: Produce Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "**/build/test-results/test/TEST-*.xml" | |
if: ${{ always() }} |