-
Notifications
You must be signed in to change notification settings - Fork 31
56 lines (45 loc) · 1.51 KB
/
integration-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@v3
- 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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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() }}