From 855e835d153ec2135cb6fd259c87482759fb6a72 Mon Sep 17 00:00:00 2001 From: terrier989 Date: Thu, 7 Sep 2023 14:47:05 +0100 Subject: [PATCH] Fix Github Actions --- .github/workflows/dart.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 20bbc72..62636be 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -4,14 +4,13 @@ on: [push, pull_request] jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest] channel: [stable, beta, dev] steps: - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 + - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa with: channel: ${{ matrix.channel }} - run: flutter --version @@ -20,8 +19,17 @@ jobs: - name: Install dependencies (Flutter) run: flutter pub get working-directory: test_in_flutter - - name: Run tests (Dart) + - name: Run tests (VM) run: dart test --platform=vm - - name: Run tests (Flutter) - run: flutter test - working-directory: test_in_flutter \ No newline at end of file + test_in_chrome: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa + with: + channel: stable + - run: flutter --version + - name: Install dependencies (Dart) + run: dart pub get + - name: Run tests (Chrome) + run: dart test --platform=chrome \ No newline at end of file