Skip to content

v2.1

v2.1 #74

Workflow file for this run

name: Flutter Tests
on:
workflow_dispatch:
push:
branches: [ master ]
paths:
- 'demo/flutter/pubspec.yaml'
- '.github/workflows/flutter.yml'
- 'resources/audio_samples/'
- 'resources/.test/'
pull_request:
branches: [ master, 'v[0-9]+.[0-9]+' ]
paths:
- 'demo/flutter/pubspec.yaml'
- '.github/workflows/flutter.yml'
- 'resources/audio_samples/'
- 'resources/.test/'
defaults:
run:
working-directory: demo/flutter
jobs:
test-android:
name: Test Android
runs-on: pv-android
steps:
- uses: actions/checkout@v3
- name: Copy test_resources
run: ./copy_test_resources.sh
- name: Inject AppID
run: sed -i 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
integration_test/app_test.dart
- name: Install dependencies
run: flutter pub get
- name: Prepare demo
run: dart scripts/prepare_demo.dart en
- name: Run integration tests
run: flutter test integration_test
test-ios:
name: Test iOS
runs-on: pv-ios
steps:
- uses: actions/checkout@v3
- name: Copy test_resources
run: ./copy_test_resources.sh
- name: Inject AppID
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
integration_test/app_test.dart
- name: Install dependencies
run: flutter pub get
- name: Prepare demo
run: dart scripts/prepare_demo.dart en
- name: Run integration tests
run: flutter test integration_test