Skip to content

ci: update workflows to use Flutter 3.22 (#1046) #1056

ci: update workflows to use Flutter 3.22 (#1046)

ci: update workflows to use Flutter 3.22 (#1046) #1056

Workflow file for this run

name: e2e
on:
pull_request:
paths:
- ".github/workflows/e2e.yaml"
- "**"
- "lib/**"
- "test/**"
- "pubspec.yaml"
push:
branches:
- main
paths:
- ".github/workflows/e2e.yaml"
- "**"
- "lib/**"
- "test/**"
- "pubspec.yaml"
jobs:
e2e:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.22.0"
- "3.x"
test:
# E2E tests for the test command
- test/commands/test/async_main/async_main_test.dart
- test/commands/test/compilation_error/compilation_error_test.dart
- test/commands/test/no_project/no_project_test.dart
- test/commands/test/spaced_golden_file_name/spaced_golden_file_name_test.dart
# E2E tests for the create command
- test/commands/create/flutter_app/core_test.dart
- test/commands/create/dart_cli/dart_cli_test.dart
- test/commands/create/dart_package/dart_pkg_test.dart
- test/commands/create/docs_site/docs_site_test.dart
# FIXME(alestiago): Re-enable once the following issue has been solved:
# https://github.com/VeryGoodOpenSource/very_good_flame_game/issues/132
# - test/commands/create/flame_game/flame_game_test.dart
- test/commands/create/flutter_package/flutter_pkg_test.dart
- test/commands/create/flutter_plugin/flutter_plugin_test.dart
# E2E tests for the `packages check licenses` command
- test/commands/packages/check/licenses/licenses_allowed_test.dart
- test/commands/packages/check/licenses/licenses_forbidden_test.dart
steps:
- name: 馃摎 Git Checkout
uses: actions/checkout@v4
- name: 馃惁 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
- name: Install LCOV
run: sudo apt-get install -y lcov
- name: 馃摝 Install Dependencies (root)
run: dart pub get
- name: 馃摝 Install Dependencies (e2e)
working-directory: e2e
run: dart pub get
- name: 馃И Run Tests (e2e)
working-directory: e2e
run: dart test ${{ matrix.test }} --run-skipped