-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore!: update Dart version constraints to ">=3.0.0 <4.0.0" (#115)
* 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
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|
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
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