Skip to content

Commit

Permalink
ci(analysis): cache key from pubspec.yaml file
Browse files Browse the repository at this point in the history
As a library package, commiting `pubspec.lock` is discouraged. See https://dart.dev/guides/libraries/private-files#pubspeclock
  • Loading branch information
albertms10 committed Apr 8, 2023
1 parent 4c6b224 commit 2ac3889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/analysis-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: cache
with:
path: ~/.pub-cache/hosted
key: ${{ runner.os }}-pubspec-${{ env.DART_SDK_VERSION }}-${{ hashFiles('**/pubspec.lock') }}
key: ${{ runner.os }}-pubspec-${{ env.DART_SDK_VERSION }}-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pubspec-${{ env.DART_SDK_VERSION }}-
${{ runner.os }}-pubspec-
Expand Down

0 comments on commit 2ac3889

Please sign in to comment.