From a3708ae840d9496fe6003d31684fc79b30ec23c7 Mon Sep 17 00:00:00 2001 From: JCantu248 Date: Mon, 25 Mar 2024 14:32:49 -0500 Subject: [PATCH] Change playwright.yml to run in a Docker container with Github Actions. --- .../.github/workflows/playwright.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/frontend/xfd_playwright/.github/workflows/playwright.yml b/frontend/xfd_playwright/.github/workflows/playwright.yml index 700c871a..41ea832b 100644 --- a/frontend/xfd_playwright/.github/workflows/playwright.yml +++ b/frontend/xfd_playwright/.github/workflows/playwright.yml @@ -2,13 +2,15 @@ name: Playwright Tests on: push: - branches: [main, master] + branches: [develop] pull_request: - branches: [main, master] + branches: [develop] jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.42.1-jammy steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -16,13 +18,7 @@ jobs: node-version: 18 - name: Install dependencies run: npm ci - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests + - name: Run your tests run: npx playwright test - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + env: + HOME: /root