Skip to content

Commit cb27540

Browse files
committed
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 cb27540

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/format.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ on:
1010
jobs:
1111
format:
1212
runs-on: ubuntu-latest
13-
container:
14-
image: dart:stable
1513

1614
steps:
1715
- name: Checkout repository
1816
uses: actions/checkout@v4
1917
with:
2018
persist-credentials: true
2119
ref: ${{ github.event.pull_request.head.ref }}
20+
21+
- name: Install Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
channel: stable
25+
26+
- name: Install dependencies
27+
run: flutter pub get
2228

2329
- name: Format Dart code
2430
run: dart format .

0 commit comments

Comments
 (0)