Skip to content

Fix unit test being corrupted on Linux #3

Fix unit test being corrupted on Linux

Fix unit test being corrupted on Linux #3

Workflow file for this run

# Name of your workflow.
name: "Integration tests"
on: [push, workflow_dispatch]
jobs:
test:
strategy:
matrix:
include:
- os: windows-latest
platform: windows
- os: ubuntu-latest
platform: ubuntu
- os: macos-latest
platform: ios
- os: macos-latest
platform: android
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
# Sets up a flutter environment.
# https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1
with:
channel: "stable" # or: 'dev' or 'beta'
- name: Pub get
run: flutter pub get
working-directory: example
- name: Run Integration Tests on Android
working-directory: example
if: matrix.platform == 'android'
run: |
flutter devices
flutter -d android test integration_test
- name: Run Integration Tests on iOS
working-directory: example
if: matrix.platform == 'ios'
run: |
flutter devices
flutter -d ios test integration_test
- name: Run Integration Tests on Windows
working-directory: example
if: matrix.platform == 'windows'
run: flutter test -d desktop integration_test
- name: Run Integration Tests on Ubuntu
working-directory: example
if: matrix.platform == 'ubuntu'
run: flutter test -d desktop integration_test