ci: run e2e tests

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-28 16:05:30 +01:00
parent ebedaf2ee2
commit b4acd97eb7
2 changed files with 69 additions and 52 deletions

View File

@@ -26,12 +26,29 @@ jobs:
- name: Run tests
run: npm run test
- name: Run e2e tests
run: npm run test:e2e:run
- name: Build project
run: npm run build
playwright:
name: 'Playwright Tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
deploy:
if: github.ref == 'refs/heads/main'
needs: build-and-test