Skip to content

Commit

Permalink
Run tests on CI with Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Jan 30, 2024
1 parent 2bc867a commit ea42775
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,5 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Start web service
run: |
cp .env.example .env
docker-compose up web nginx
- uses: actions/setup-node@v3
with:
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn workspace e2e_testing install

- name: Install Playwright browsers
run: yarn workspace e2e_testing exec playwright install --with-deps

- name: Run Playwright tests
run: yarn workspace e2e_testing test
env:
BASE_URL: http://localhost:8063

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: e2e_testing/playwright-report/
retention-days: 30
- name: Run web service and E2E tests
run: docker compose up e2e-tests

0 comments on commit ea42775

Please sign in to comment.