Skip to content

Commit

Permalink
feat: Update Pub cache key in tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Aug 22, 2024
1 parent 03af219 commit f0a7ee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ jobs:
uses: actions/cache/restore@v4
with:
path: |
.pub_cache/
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('**/pubspec.yaml') }}
$HOME/.pub-cache
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('pubspec.yaml') }}

- name: 🗄️ Export Pub cache directory
id: export-pub-cache
timeout-minutes: 1
run: |
export PUB_CACHE=$PWD/.pub_cache/
export PUB_CACHE=$HOME/.pub-cache
export PATH="$PATH":"$HOME/.pub-cache/bin"
- name: 👷 Install Dependencies
Expand All @@ -70,8 +70,8 @@ jobs:
uses: actions/cache/save@v4
with:
path: |
.pub_cache/
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('**/pubspec.yaml') }}
$HOME/.pub-cache
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('pubspec.yaml') }}

- name: 🔎 Check format
id: check-format
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ jobs:
uses: actions/cache/restore@v4
with:
path: |
.pub_cache/
$HOME/.pub-cache
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('pubspec.yaml') }}

- name: 🗄️ Export Pub cache directory
id: export-pub-cache
timeout-minutes: 1
run: |
export PUB_CACHE=$PWD/.pub_cache/
export PUB_CACHE=$HOME/.pub-cache
export PATH="$PATH":"$HOME/.pub-cache/bin"
- name: 👷 Install Dependencies
Expand All @@ -151,7 +151,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: |
.pub_cache/
$HOME/.pub-cache
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('pubspec.yaml') }}

- name: 📢 Run Echo server
Expand Down

0 comments on commit f0a7ee8

Please sign in to comment.