Skip to content

Commit

Permalink
ci: Enforce lock file when retrieving dependencies
Browse files Browse the repository at this point in the history
For reproducibility, we should always use the lock file when
retrieving dependencies and fail otherwise.
  • Loading branch information
Mr-Pepe committed Jan 9, 2024
1 parent 055e0d6 commit 2c23260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
path: .dart_tool
key: ${{ runner.os }}-dart-${{ hashFiles('**/pubspec.lock') }}-

- run: flutter pub get
- run: flutter pub get --enforce-lockfile
- run: dart format --set-exit-if-changed .
- run: dart run build_runner build # Generate mocks
- run: flutter analyze .
Expand Down

0 comments on commit 2c23260

Please sign in to comment.