feat: flutter integration tests #9
Workflow file for this run
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: 🧪 Flutter iOS and Android Integration Tests | |
permissions: | |
contents: read | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- "main" | |
paths-ignore: | |
- "**.md" | |
- "doc/**" | |
- ".vscode/" | |
jobs: | |
integration-tests: | |
name: Mobile - Integration Tests | |
runs-on: macos-latest | |
timeout-minutes: 30 | |
steps: | |
- name: ⬇️ Checkout repository | |
uses: actions/checkout@v3 | |
- name: ⤵️ Authenticate with Google Cloud Platform | |
uses: "google-github-actions/auth@v1" | |
with: | |
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS_INTEGRATION_TESTS }}" | |
- name: ⚙️ Setup Google Cloud SDK | |
uses: google-github-actions/setup-gcloud@v1 | |
- name: ⚙️ Setup Java | |
uses: actions/setup-java@v1 | |
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@v2 | |
- name: ⚙️ Install dependencies for all packages | |
run: melos build:pub_get:all | |
- name: 🤖 Run Android Integration Tests | |
run: ./scripts/flutter_android_integration_test.sh | |
# - name: 📱 Run iOS Integration Tests | |
# run: ./scripts/flutter_ios_integration_test.sh |