From 0193246060a8adee1759c870d222cc55e3f5fd14 Mon Sep 17 00:00:00 2001 From: Janusz Czapski Date: Mon, 22 Apr 2024 14:08:27 +0100 Subject: [PATCH] test: add Playwright to GitHub actions --- .github/workflows/deploy.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 81e1a5a..82e60a5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,6 +7,26 @@ concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - 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 build: runs-on: ubuntu-latest strategy: @@ -14,7 +34,6 @@ jobs: node-version: [20] steps: - uses: actions/checkout@v3 - - name: Ventura Deploy Github Pages Action uses: AhsanAyaz/angular-deploy-gh-pages-actions@v1.4.0 with: