Skip to content

Commit ca98758

Browse files
Merge pull request #325 from Workiva/batch/cplat/update_dep_validator
Upgrade dependency_validator
2 parents 1e93f9d + 8cf4901 commit ca98758

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/dart_ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
sdk: [stable, beta]
15+
sdk: [2.13.4, stable, beta]
1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: dart-lang/setup-dart@v0.1
18+
- uses: dart-lang/setup-dart@v1
1919
with:
20-
channel: ${{ matrix.sdk }}
20+
sdk: ${{ matrix.sdk }}
2121

2222
- name: Print Dart SDK version
2323
run: dart --version
@@ -27,12 +27,12 @@ jobs:
2727
run: dart pub get
2828

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

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

3737
- name: Analyze project source
3838
run: dart analyze

pubspec.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ dev_dependencies:
1212
build_runner: ^1.6.5
1313
build_test: ^0.10.8
1414
build_web_compilers: ^2.12.0
15-
dependency_validator: ^1.2.0
15+
dependency_validator: ^2.0.0
1616
matcher: ^0.12.5
1717
mockito: ">=4.1.1 <6.0.0"
1818
test: ^1.6.5
19+
20+
dependency_validator:
21+
ignore:
22+
- meta # ignore the pin for now

0 commit comments

Comments
 (0)