mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 10:51:28 +00:00
v
This commit is contained in:
parent
f44e665784
commit
5317b42b40
8
.github/workflows/cache-verify.yml
vendored
8
.github/workflows/cache-verify.yml
vendored
@ -52,13 +52,15 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Compute cache key
|
||||
- name: Compute cache key (unique per run)
|
||||
id: cache-key
|
||||
run: |
|
||||
BACKEND_HASH=$(sha256sum backend/yarn.lock | cut -d' ' -f1)
|
||||
WEBAPP_HASH=$(sha256sum webapp/yarn.lock | cut -d' ' -f1)
|
||||
CYPRESS_HASH=$(sha256sum cypress/yarn.lock | cut -d' ' -f1 2>/dev/null || echo "none")
|
||||
echo "key=ci-all-cache-${{ runner.os }}-${BACKEND_HASH}-${WEBAPP_HASH}-${CYPRESS_HASH}" >> $GITHUB_OUTPUT
|
||||
KEY="ci-all-cache-${{ runner.os }}-${BACKEND_HASH}-${WEBAPP_HASH}-${CYPRESS_HASH}-run${{ github.run_id }}"
|
||||
echo "key=$KEY"
|
||||
echo "key=$KEY" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Restore CI cache
|
||||
id: restore-cache
|
||||
@ -72,7 +74,6 @@ jobs:
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
restore-keys: |
|
||||
ci-all-cache-${{ runner.os }}-
|
||||
ci-all-cache-
|
||||
|
||||
- name: Install backend dependencies if needed
|
||||
run: |
|
||||
@ -123,6 +124,7 @@ jobs:
|
||||
/opt/cucumber-json-formatter
|
||||
key: ${{ steps.cache-key.outputs.key }}
|
||||
|
||||
|
||||
verify-environment:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [cache-environment]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user