Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek29 committed Nov 28, 2024
1 parent e29e028 commit c867cfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
test-app:
Expand All @@ -27,8 +28,7 @@ jobs:
- name: Setup server
working-directory: server
run: npm i
env:
JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}


- name: Setup socket
working-directory: socket
Expand All @@ -43,6 +43,11 @@ jobs:
run: |
nohup npm run start:test &
sleep 10
env:
JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}
VITE_SERVER_HOST: 0.0.0.0
VITE_SERVER_PORT: 5173


- name: install playwright browser
working-directory: client
Expand All @@ -51,6 +56,9 @@ jobs:
- name: Run Playwright tests
working-directory: client
run: npx playwright test --reporter=line
env:
VITE_SERVER_HOST: 0.0.0.0
VITE_SERVER_PORT: 5173

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
4 changes: 2 additions & 2 deletions client/tests/auth.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ async function registerUser(page: Page) {
const email = `${generateString()}@${generateString()}.com`;
const name = generateString();
const password = generateStrongPassword();
await page.goto('0.0.0.0:5173/register');
// await page.goto('http://localhost:5173/register');
// await page.goto('0.0.0.0:5173/register');
await page.goto('http://localhost:5173/register');
await page.getByPlaceholder('Name').fill(name);
await page.getByPlaceholder('Email').fill(email);
await page.getByPlaceholder('Password').fill(password);
Expand Down

0 comments on commit c867cfc

Please sign in to comment.