summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-12-10 00:11:20 -0600
committerGravatar GitHub <noreply@github.com> 2021-12-10 00:11:20 -0600
commit80c65e94973b937b408aabc39f75446ae03bf1e8 (patch)
treeb1fedab6a1737ae10cd942ff8b4ae2e46d442128
parent16484f603dd83bc2dde2988640d5a77d7b5eca31 (diff)
downloadastro-80c65e94973b937b408aabc39f75446ae03bf1e8.tar.gz
astro-80c65e94973b937b408aabc39f75446ae03bf1e8.tar.zst
astro-80c65e94973b937b408aabc39f75446ae03bf1e8.zip
Improve turbo cache (#2178)
* chore(action): regenerate turbo cache * chore(action): fix build * chore: add support for [force-ci] option * [force-ci] * fix: force-ci support * [force-ci] * chore: debug commit message * chore: debug commit message * fix: remove force-ci support * [force-ci] * chore(actions): fix hash key * chore(actions): fix hash key?
-rw-r--r--.github/workflows/ci.yml24
1 files changed, 4 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e959f585e..0bb48fb96 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -87,11 +87,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
- key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
- restore-keys: |
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
- turbo-${{ github.ref }}-
+ key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -145,11 +141,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
- key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
- restore-keys: |
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
- turbo-${{ github.ref }}-
+ key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -193,11 +185,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
- key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
- restore-keys: |
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
- turbo-${{ github.ref }}-
+ key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -236,11 +224,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
- key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
- restore-keys: |
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
- turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
- turbo-${{ github.ref }}-
+ key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000