Skip to content

[WIP] [Tests - E2E] Utilisation de Playwright plutôt que Cypress #23

[WIP] [Tests - E2E] Utilisation de Playwright plutôt que Cypress

[WIP] [Tests - E2E] Utilisation de Playwright plutôt que Cypress #23

Workflow file for this run

name: Playwright Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
playwright:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start containers
run: docker compose -f "docker-compose.yml" up -d --build
- name: Curl test
run: |
curl -i http://localhost:8080
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
PLAYWRIGHT_TEST_BASE_URL: http://localhost:8080
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30