Skip to content

Commit

Permalink
ci: update main.yaml dependency step
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Nov 29, 2023
1 parent 1a8a5ee commit e8de826
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ jobs:
sdk: ${{ matrix.dart-version }}

- name: 📦 Install Dependencies
run: dart pub get --no-example
# Since Dart SDK 3.0.0 (2023-05-10): `dart pub get` and related commands by default also
# update the dependencies in the `example` folder (if it exists). Since this package is
# Dart only and the example uses Flutter, we need to disable this behavior.
#
# [See the CHANGELOG for more details](https://github.com/dart-lang/sdk/blob/3ea1820141876d12f8fcfb6c924d4ce4519511dd/CHANGELOG.md).
run: |
if [[ "${{ matrix.dart-version }}" == "2.14.0" ]]; then
dart pub get
else
dart pub get --no-example
fi
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed lib test
Expand Down

0 comments on commit e8de826

Please sign in to comment.