blob: d515d19aa93355af3f79256a7b9cee336919687f [file]
name: Flutter Gallery Integration Tests
on:
push:
branches:
- master
pull_request:
jobs:
integration-test:
name: Integration tests
runs-on: ubuntu-18.04
steps:
# Set up Flutter and add it to the path.
- name: Clone Flutter repository with master channel
uses: actions/checkout@v2
with:
repository: 'flutter/flutter'
ref: 'master'
path: 'flutter'
fetch-depth: 0
- name: Add Flutter to the PATH
run: echo "::add-path::$GITHUB_WORKSPACE/flutter/bin"
- name: Run Flutter doctor
run: flutter doctor -v
- name: Enable Flutter web
run: flutter config --enable-web
# Clone the Gallery repository under `code`, to avoid conflicts with `flutter`.
- name: Clone the Gallery repository
uses: actions/checkout@v2
with:
path: 'code'
# Run integration tests.
- name: Get packages for the Flutter project
run: flutter pub get
working-directory: code
- name: Run gallery_compile_test
run: flutter test integration_test/gallery_compile_test.dart
working-directory: code