blob: 137699891e25f97cf02eafd01e1c19d0bc3e6c1b [file] [log] [blame]
name: Flutter Gallery Integration Tests
on:
push:
branches:
- master
pull_request:
jobs:
integration-test:
name: Integration tests
runs-on: ubuntu-latest
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