Skip to content

Commit 8bafc77

Browse files
Workflow testing
1 parent 2941962 commit 8bafc77

3 files changed

Lines changed: 31 additions & 9 deletions

File tree

.github/workflows/run-e2e-tests.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ jobs:
3535
with:
3636
node-version: lts/*
3737

38+
- name: Load ENV files from examples
39+
run: |
40+
mv builder-frontend/.env.example builder-frontend/.env
41+
mv builder-api/.env.example builder-api/.env
42+
mv .env.example .env
43+
3844
# 1) Devbox Setup #
3945
- name: Setup devbox
4046
uses: ./.github/actions/devbox-setup
@@ -69,11 +75,6 @@ jobs:
6975
working-directory: builder-frontend
7076
run: devbox run install-builder-frontend-ci
7177

72-
- name: Load ENV files from examples
73-
run: |
74-
mv builder-frontend/.env.example builder-frontend/.env
75-
mv builder-api/.env.example builder-api/.env
76-
7778
- name: Load E2E emulator data
7879
run: |
7980
rm -rf emulator-data
@@ -92,20 +93,44 @@ jobs:
9293
run: npx playwright install --with-deps
9394
working-directory: e2e
9495

96+
- name: Run a bash command and print output
97+
run: |
98+
echo "Listing devbox processes:"
99+
devbox services ls
100+
shell: bash
101+
95102
- name: Wait for App to be available
96103
uses: nev7n/wait_for_response@v1
97104
with:
98105
url: "http://localhost:5173/"
99106
responseCode: 200
100-
timeout: 90000
107+
timeout: 60000
101108
interval: 1000
102109
continue-on-error: true
103110

111+
- name: Run a bash command and print output
112+
run: |
113+
echo "Listing devbox processes:"
114+
devbox services ls
115+
shell: bash
116+
117+
- name: Run a bash command and print output
118+
run: |
119+
echo "Listing devbox processes:"
120+
tail -n 100 /tmp/process-compose-$(whoami).log
121+
shell: bash
122+
104123
- name: Run Playwright tests
105124
run: npx playwright test
106125
working-directory: e2e
107126
continue-on-error: true
108127

128+
- name: Run a bash command and print output
129+
run: |
130+
echo "Listing devbox processes:"
131+
devbox services ls
132+
shell: bash
133+
109134
- uses: actions/upload-artifact@v4
110135
if: ${{ !cancelled() }}
111136
with:

builder-frontend/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ VITE_AUTH_DOMAIN=localhost:9099
55
VITE_MEASUREMENT_ID=G-XXXXXXXXXX
66
VITE_MESSAGING_SENDER_ID=123456789
77
VITE_PROJECT_ID=demo-bdt-dev
8-
VITE_SCREENER_BASE_URL=http://localhost:5174/
98
VITE_STORAGE_BUCKET=demo-bdt-dev.appspot.com
109
DEV_SERVER_PORT=5173

process-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ processes:
1616
description: Sync library check metadata from library-api to Firebase Storage
1717
command: ./bin/library/sync-metadata
1818
depends_on:
19-
library-api:
20-
condition: process_log_ready
2119
firebase-emulators:
2220
condition: process_log_ready
2321
availability:

0 commit comments

Comments
 (0)