mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 10:51:28 +00:00
e2e
This commit is contained in:
parent
7dfd58c7f1
commit
9740ec3622
11
.github/workflows/cache-verify.yml
vendored
11
.github/workflows/cache-verify.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
||||
ROOT_HASH=$(sha256sum yarn.lock | cut -d' ' -f1)
|
||||
BACKEND_HASH=$(sha256sum backend/yarn.lock | cut -d' ' -f1)
|
||||
WEBAPP_HASH=$(sha256sum webapp/yarn.lock | cut -d' ' -f1)
|
||||
KEY="ci-unified-cache-${{ runner.os }}-${ROOT_HASH}-${BACKEND_HASH}-${WEBAPP_HASH}"
|
||||
KEY="ci-unified-cache-${{ runner.os }}-${ROOT_HASH}-${BACKEND_HASH}-${WEBAPP_HASH}-${{ github.run_id }}"
|
||||
echo "key=$KEY"
|
||||
echo "key=$KEY" >> $GITHUB_OUTPUT
|
||||
- name: Restore unified CI cache
|
||||
@ -92,7 +92,6 @@ jobs:
|
||||
cd webapp && yarn install --frozen-lockfile && cd ..
|
||||
npx cypress verify || echo "Cypress verify failed (likely not yet installed)"
|
||||
|
||||
|
||||
- name: Install cucumber-json-formatter if missing
|
||||
run: |
|
||||
if [ ! -f /opt/cucumber-json-formatter ]; then
|
||||
@ -188,6 +187,14 @@ jobs:
|
||||
ci-all-cache-${{ runner.os }}-
|
||||
ci-all-cache-
|
||||
|
||||
# rehydrate dependencies
|
||||
- name: Rehydrate dependencies
|
||||
run: |
|
||||
yarn install --frozen-lockfile
|
||||
cd backend && yarn install --frozen-lockfile && cd ..
|
||||
cd webapp && yarn install --frozen-lockfile && cd ..
|
||||
npx cypress --version || echo "⚠️ Cypress not found"
|
||||
|
||||
# build backend and webapp
|
||||
- name: Build backend
|
||||
run: cd backend && yarn build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user