-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (43 loc) · 1.49 KB
/
flutter-mobile-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
name: 🧪 Flutter iOS and Android Integration Tests
permissions:
contents: read
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
schedule:
# Schedule to run at midnight UTC
- cron: "0 0 * * *"
jobs:
integration-tests:
name: Mobile - Integration Tests
runs-on: macos-latest
timeout-minutes: 30
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v4
- name: ⤵️ Authenticate with Google Cloud Platform
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS_INTEGRATION_TESTS }}"
- name: ⚙️ Setup Google Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: ⚙️ Setup Java
uses: actions/setup-java@v4
with:
java-version: "12.x"
- name: ⚙️ Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: ⚙️ Setup Melos
uses: bluefireteam/melos-action@v3
- name: ⚙️ Install dependencies for all packages
run: melos build:pub_get:all
- name: 🤖 Run Android Integration Tests
run: ./catalyst_voices/scripts/flutter_android_integration_test.sh
# TODO: https://github.com/input-output-hk/catalyst-voices/issues/135
# - name: 📱 Run iOS Integration Tests
# run: ./catalyst_voices/scripts/flutter_ios_integration_test.sh