-
Notifications
You must be signed in to change notification settings - Fork 77
54 lines (44 loc) · 1.33 KB
/
integration-test.yaml
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
name: Integration tests
on:
workflow_dispatch:
pull_request:
paths:
- "**.dart"
env:
JAVA_VERSION: 17
FLUTTER_VERSION: 3.22.2
jobs:
mobile_integration_test:
permissions:
contents: "read"
id-token: "write"
name: Run integration tests for mobile apps
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Authenticate to Google Cloud
uses: "google-github-actions/auth@v2"
with:
project_id: ${{ secrets.GOOGLE_CLOUD_PROJECT_ID }}
workload_identity_provider: ${{ secrets.GOOGLE_CLOUD_WORKLOAD_IDENTITY_PROVIDER_ID }}
service_account: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT }}
- name: Setup Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: "stable"
cache: true
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: "temurin"
- name: Run prebuild
run: ./scripts/prebuild.sh
- name: Test
env:
TEST_CREDENTIALS: ${{ secrets.TEST_CREDENTIALS }}
run: ./scripts/integration-tests.sh