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
8832e447b1
commit
c549dea047
35
.github/workflows/cache-verify.yml
vendored
35
.github/workflows/cache-verify.yml
vendored
@ -126,6 +126,23 @@ jobs:
|
||||
ci-all-cache-${{ runner.os }}-
|
||||
ci-all-cache-
|
||||
|
||||
# check for node modules etc
|
||||
- name: Check node_modules exist
|
||||
run: |
|
||||
[ -d backend/node_modules ] && echo "✅ backend/node_modules ok" || (echo "❌ backend/node_modules missing" && exit 1)
|
||||
[ -d webapp/node_modules ] && echo "✅ webapp/node_modules ok" || (echo "❌ webapp/node_modules missing" && exit 1)
|
||||
- name: Check Cypress binary cache
|
||||
run: |
|
||||
[ -d ~/.cache/Cypress ] && echo "✅ Cypress cache ok" || (echo "❌ Cypress cache missing" && exit 1)
|
||||
|
||||
- name: Check Cypress CLI & version
|
||||
run: |
|
||||
npx --no-install cypress --version && npx cypress verify
|
||||
|
||||
- name: Check cucumber-json-formatter
|
||||
run: |
|
||||
[ -x /opt/cucumber-json-formatter ] && /opt/cucumber-json-formatter --help || (echo "❌ Formatter missing" && exit 1)
|
||||
|
||||
- name: Download Docker image artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@ -142,24 +159,6 @@ jobs:
|
||||
cp webapp/.env.template webapp/.env || touch webapp/.env
|
||||
cp backend/.env.test_e2e backend/.env || touch backend/.env
|
||||
|
||||
# ---- Checks ----
|
||||
- name: Check node_modules exist
|
||||
run: |
|
||||
[ -d backend/node_modules ] && echo "✅ backend/node_modules ok" || (echo "❌ backend/node_modules missing" && exit 1)
|
||||
[ -d webapp/node_modules ] && echo "✅ webapp/node_modules ok" || (echo "❌ webapp/node_modules missing" && exit 1)
|
||||
|
||||
- name: Check Cypress binary cache
|
||||
run: |
|
||||
[ -d ~/.cache/Cypress ] && echo "✅ Cypress cache ok" || (echo "❌ Cypress cache missing" && exit 1)
|
||||
|
||||
- name: Check Cypress CLI & version
|
||||
run: |
|
||||
npx --no-install cypress --version && npx cypress verify
|
||||
|
||||
- name: Check cucumber-json-formatter
|
||||
run: |
|
||||
[ -x /opt/cucumber-json-formatter ] && /opt/cucumber-json-formatter --help || (echo "❌ Formatter missing" && exit 1)
|
||||
|
||||
- name: Start system
|
||||
run: |
|
||||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user