mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 10:51:28 +00:00
e2e build backend and webapp before
This commit is contained in:
parent
134a3878fa
commit
e7936c2eb5
16
.github/workflows/cache-verify.yml
vendored
16
.github/workflows/cache-verify.yml
vendored
@ -181,12 +181,22 @@ jobs:
|
||||
restore-keys: |
|
||||
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 verify || echo "⚠️ Cypress not yet verified"
|
||||
|
||||
# build backend and webapp
|
||||
- name: Build backend and webapp
|
||||
run: |
|
||||
cd backend && yarn build && cd ..
|
||||
cd webapp && yarn build && cd ..
|
||||
|
||||
# run docker compose
|
||||
- name: Boot system for tests
|
||||
run: |
|
||||
docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach backend mailserver webapp
|
||||
@ -198,12 +208,6 @@ jobs:
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# build backend and webapp
|
||||
# - name: Build backend and webapp
|
||||
# run: |
|
||||
# cd backend && yarn build && cd ..
|
||||
# cd webapp && yarn build && cd ..
|
||||
|
||||
# Cypress tests
|
||||
- name: Full stack tests | run tests
|
||||
id: e2e-tests
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user