Skip to content

Merge pull request #14 from IO-Design-Team/release/2.4.2 #60

Merge pull request #14 from IO-Design-Team/release/2.4.2

Merge pull request #14 from IO-Design-Team/release/2.4.2 #60

Workflow file for this run

name: Dart CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code-quality:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
- run: |
dart pub global activate puby
puby link
dart format . --set-exit-if-changed
dart analyze --fatal-infos
test-hive:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- test-platform: vm
compiler: kernel
- test-platform: chrome
compiler: dart2js
- test-platform: chrome
compiler: dart2wasm
steps:
- uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- uses: dart-lang/setup-dart@v1
with:
sdk: 3.4.0
- name: Install dependencies
run: dart pub get
working-directory: hive
- name: Run tests
run: dart test -p ${{ matrix.test-platform }} -c ${{ matrix.compiler }}
working-directory: hive
test-hive-flutter:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
- name: Install dependencies
run: flutter pub get
working-directory: hive_flutter
- name: Run tests
run: flutter test
working-directory: hive_flutter
test-hive_generator:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
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:
matrix:
package: [hive, hive_generator, hive_flutter]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- run: |
cd ${{ matrix.package }}
flutter pub get
dart pub global activate pana
pana --no-warning --exit-code-threshold 0