From a6525416678474dd2d61ba7f391f73e0e187d7d2 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 4 Aug 2022 13:19:27 +0200 Subject: [PATCH] add playwright job --- .../.github/workflows/playwright.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/.github/workflows/playwright.yml diff --git a/src/Umbraco.Web.UI.Client/.github/workflows/playwright.yml b/src/Umbraco.Web.UI.Client/.github/workflows/playwright.yml new file mode 100644 index 0000000000..06912e1516 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/.github/workflows/playwright.yml @@ -0,0 +1,27 @@ +name: Playwright Tests +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16.x' + - 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@v2 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30