From b4acd97eb7feabadbc4f019e9e4cee995b8c7190 Mon Sep 17 00:00:00 2001 From: "Ibrahima G. Coulibaly" Date: Fri, 28 Jun 2024 16:05:30 +0100 Subject: [PATCH] ci: run e2e tests --- .github/workflows/ci.yml | 23 ++++++++-- .idea/workspace.xml | 98 ++++++++++++++++++++-------------------- 2 files changed, 69 insertions(+), 52 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c124c5..c3a42a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2fd69ab..ee54f8c 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,10 +4,9 @@