Skip to content

Commit 283e304

Browse files
authored
fix: install dependencies so analysis options work during format
Because the flutter_lints dev dependency wasn't installed, dart format couldn't resolve the analysis_options.yaml properly and didn't fully format everything correctly.
1 parent d1e9a39 commit 283e304

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/format.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
format:
1212
runs-on: ubuntu-latest
1313
container:
14-
image: dart:stable
14+
image: dart:stable
1515

1616
steps:
1717
- name: Checkout repository
@@ -20,6 +20,9 @@ jobs:
2020
persist-credentials: true
2121
ref: ${{ github.event.pull_request.head.ref }}
2222

23+
- name: Install dependencies
24+
run: dart pub get
25+
2326
- name: Format Dart code
2427
run: dart format .
2528

0 commit comments

Comments
 (0)