Skip to content

Commit

Permalink
Update e2e-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandraKrasteva authored Jun 21, 2024
1 parent aa0fa47 commit 24b1a4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
Expand All @@ -34,6 +34,7 @@ jobs:
run: npm install

- name: Start Next.js app
working-directory: './client'
run: npm run dev &
env:
NODE_ENV: test
Expand All @@ -44,13 +45,14 @@ jobs:
- name: Set up Docker Compose
run: |
docker-compose -f e2e-docker-compose.yml up -d
docker-compose -f ./e2e-docker-compose.yaml up -d
- name: Wait for service initialisation
run: |
sleep 120
- name: Run Playwright tests
working-directory: './client'
run: npx playwright test
env:
CI: true
Expand All @@ -59,9 +61,9 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: test-report
path: playwright-report/
path: ./client/playwright-report/

- name: Clean up
run: |
docker-compose -f docker-compose.yml down
docker-compose -f ./e2e-docker-compose.yaml down
pkill -f 'npm run dev'

0 comments on commit 24b1a4b

Please sign in to comment.