Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependency_validator #325

Merged
merged 5 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [stable, beta]
sdk: [2.13.4, stable, beta]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v0.1
- uses: dart-lang/setup-dart@v1
with:
channel: ${{ matrix.sdk }}
sdk: ${{ matrix.sdk }}

- name: Print Dart SDK version
run: dart --version
Expand All @@ -27,12 +27,12 @@ jobs:
run: dart pub get

- name: Validate dependencies
run: dart pub run dependency_validator -i build_runner,build_test,build_web_compilers,meta
run: dart run dependency_validator
if: always() && steps.install.outcome == 'success'

- name: Verify formatting
run: dart format --output=none --line-length=120 --set-exit-if-changed .
if: always() && ${{ matrix.sdk }} == 'stable' && steps.install.outcome == 'success'
- name: Verify formatting
run: dart format --output=none --line-length=120 --set-exit-if-changed .
if: always() && ${{ matrix.sdk }} == 'stable' && steps.install.outcome == 'success'

- name: Analyze project source
run: dart analyze
Expand Down
6 changes: 5 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ dev_dependencies:
build_runner: ^1.6.5
build_test: ^0.10.8
build_web_compilers: ^2.12.0
dependency_validator: ^1.2.0
dependency_validator: ^2.0.0
matcher: ^0.12.5
mockito: ">=4.1.1 <6.0.0"
test: ^1.6.5

dependency_validator:
ignore:
- meta # ignore the pin for now