From 64b5d0d5e74718f0da0bb24a745d96e2a12b058c Mon Sep 17 00:00:00 2001 From: Ynda Jas Date: Fri, 17 May 2024 20:16:29 +0100 Subject: [PATCH] Use test script for end-to-end tests --- .github/workflows/e2e.yml | 20 ++++++++++++++++++++ .github/workflows/playwright.yml | 31 ------------------------------- 2 files changed, 20 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/e2e.yml delete mode 100644 .github/workflows/playwright.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..230d5ef --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,20 @@ +name: End-to-end tests + +on: + pull_request: + push: + branches: + - main + +jobs: + e2e: + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Run tests + run: script/test --ci-environment diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml deleted file mode 100644 index 376d2de..0000000 --- a/.github/workflows/playwright.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: End-to-end tests - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - test: - timeout-minutes: 60 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - 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 - - uses: actions/upload-artifact@v4 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30