Skip to content

Commit

Permalink
chore!: update Dart version constraints to ">=3.0.0 <4.0.0" (#115)
Browse files Browse the repository at this point in the history
* chore: update Dart version constraints

* ci: update main.yaml dependency step

* chore: bump min SDK in workflow to 2.17.0

* chore: bump version constraints

* chore: bump example SDK version
  • Loading branch information
alestiago authored Feb 9, 2024
1 parent 0fdd6ae commit 643746a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
40 changes: 36 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,42 @@ jobs:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1

build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_channel: stable
flutter_version: 3.13.3
runs-on: ubuntu-latest

strategy:
matrix:
dart-version:
- "3.0.0" # The minimum Dart SDK version supported by the package.
- "stable"

steps:
# Consider replacing this with Very Good Workflows' dart_package, once the following
# issue is resolved:
# https://github.com/VeryGoodOpenSource/very_good_workflows/issues/151
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-version }}

- name: 📦 Install Dependencies
run: dart pub get --no-example

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed lib test

- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings lib test

- name: 🧪 Run Tests
run: |
dart pub global activate coverage 1.2.0
dart test -j 4 --coverage=coverage --platform="vm" && dart pub global run coverage:format_coverage --lcov --check-ignore --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on="lib,test"
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1.11.0
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.19.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ documentation: https://github.com/VeryGoodOpenSource/formz
version: 0.6.1

environment:
sdk: ">=2.14.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
meta: ^1.7.0
Expand Down

0 comments on commit 643746a

Please sign in to comment.