Skip to content

Commit

Permalink
Use flutter instead of dart in tests; Adds codegen job
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jul 6, 2024
1 parent ea7ddb7 commit 0d41093
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
include:
- test-platform: vm
compiler: kernel
Expand All @@ -25,9 +26,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
sdk: 3.4.0
channel: ${{ matrix.flutter-channel }}
- name: Install dependencies
run: dart pub get
working-directory: hive
Expand All @@ -39,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [beta, stable]
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -56,19 +57,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dart-channel: ["3.4.0"]
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
sdk: ${{ matrix.dart-channel }}
channel: ${{ matrix.flutter-channel }}
- name: Install dependencies
run: dart pub get
working-directory: hive_generator/example
- name: Generate build_runner output
run: dart pub run build_runner build --delete-conflicting-outputs
working-directory: hive_generator/example

ensure-codegen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- run: |
dart pub global activate puby
puby link
puby gen
git diff --exit-code
check-score:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 0d41093

Please sign in to comment.