Skip to content

Commit cf04291

Browse files
committed
update unit test stub
1 parent 4a55cd9 commit cf04291

File tree

6 files changed

+480
-280
lines changed

6 files changed

+480
-280
lines changed

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VITE_CB_ENDPOINT=http://coderbot.local
1+
VITE_CB_ENDPOINT=http://localhost:8090
22
VITE_COVERAGE=true

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VITE_CB_ENDPOINT=http://localhost:5000
1+
VITE_CB_ENDPOINT=http://localhost
22
VITE_COVERAGE=true

.github/workflows/build_frontend.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ jobs:
1414
- name: Docker login
1515
run: docker login ghcr.io -u previ -p ${{ secrets.GHCR_BACKEND_STUB_RO }}
1616
- name: Run stub
17-
run: docker run -dp 5000:5000 --name backend-stub ghcr.io/coderbotorg/backend:stub-latest
17+
run: docker run -d -p 5000:5000 -p 9090:9090 --name backend-stub ghcr.io/coderbotorg/backend:stub-latest
18+
- name: install and run nginx
19+
run: apt-get update -y && \
20+
apt-get install nginx && \
21+
cp docker/nginx.conf /etc/nginx/nginx.conf && \
22+
cp docker/default.conf /etc/nginx/default.conf
1823
# Install NPM dependencies, cache them correctly
1924
# and run all Cypress tests
2025
- name: Cypress run
2126
uses: cypress-io/github-action@v4
2227
with:
2328
#build: npm run build-test
2429
start: npm run test
25-
wait-on: 'http://localhost:5000/api/v1/openapi.json'
30+
wait-on: 'http://localhost/api/v1/openapi.json'
2631
wait-on-timeout: 60
2732
browser: chrome
2833
record: true

cypress/downloads/downloads.html

1.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy