fix(brick): ignore coverage folders #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.ref }} | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/e2e.yaml' | |
- 'packages/brick/**' | |
- '!packages/brick/*.md' | |
- 'packages/brick_e2e/**' | |
- 'pubspec.yaml' | |
workflow_dispatch: {} | |
jobs: | |
e2e: | |
name: E2E testing | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
# HACK(mrverdant13): E2E tests fail on Windows | |
# This is due to a drive issue affecting the coverage gathering step. | |
# The Dart SDK is installed in the C: drive, as well as the global packages. | |
# The issue is that the coverage gathering step, on Windows, uses a relative path | |
# that assumes the Dart SDK is installed in the same drive as the project. | |
# - windows-latest | |
defaults: | |
run: | |
working-directory: packages/brick_e2e | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.19.3 | |
- name: Install melos | |
run: dart pub global activate melos 4.1.0 | |
- name: Install coverage | |
run: dart pub global activate coverage 1.7.2 | |
- name: Install coverde | |
run: dart pub global activate coverde 0.2.0+2 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run E2E tests | |
# HACK: E2E tests cannot be run with Melos | |
# Check the root melos.yaml for more details | |
# run: melos run t.e2e.d | |
run: dart test e2e --run-skipped -t e2e -j 1 -r expanded --verbose-trace --chain-stack-traces --test-randomize-ordering-seed=random |