Also cache pubspec lock file
diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml
index 461f406..fbdbf21 100644
--- a/.github/workflows/dart.yml
+++ b/.github/workflows/dart.yml
@@ -15,7 +15,9 @@
- uses: dart-lang/setup-dart@v1
- uses: actions/cache@v2
with:
- path: ${{ env.PUB_CACHE }}
+ path: |
+ ${{ env.PUB_CACHE }}
+ pubspec.lock
key: dart-tool-${{ hashFiles('pubspec.yaml') }}
- name: "Install dependencies"
@@ -44,7 +46,7 @@
key: dart-tool-${{ hashFiles('pubspec.yaml') }}
- name: "Get dependencies"
- run: dart pub upgrade
+ run: dart pub get
- name: "Download 7za"
run: dart run tool/download_7za.dart