From 7557349744109206254c8678cf159841207adfbe Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Sat, 4 Apr 2026 19:18:53 +0000 Subject: [PATCH 1/4] Playwright github action --- .github/workflows/playwright.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/playwright.yml diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 0000000..05b9e1d --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,42 @@ +name: "Tests: Playwright" + +on: + pull_request: + branches: + - main + +jobs: + test: + name: playwright + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Install Playwright browsers + run: npx playwright install --with-deps chromium + + - name: Build CSS + run: npm run build + + - name: Run Playwright tests + run: npm run test:run + + - name: Upload test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: | + test-results/ + playwright-report/ + retention-days: 7 From 6d41db97ae4a467bd045c6dd06947b681016694a Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Sat, 4 Apr 2026 19:41:15 +0000 Subject: [PATCH 2/4] Playwright github action --- .github/workflows/playwright.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 05b9e1d..0596b51 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -8,7 +8,7 @@ on: jobs: test: name: playwright - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v4 From a2e6e6cf78daf9041c8b7a801b3c3c75a01a8692 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Sat, 4 Apr 2026 20:48:50 +0000 Subject: [PATCH 3/4] Playwright github action --- .github/workflows/playwright-snapshots.yml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/playwright-snapshots.yml diff --git a/.github/workflows/playwright-snapshots.yml b/.github/workflows/playwright-snapshots.yml new file mode 100644 index 0000000..d40bf37 --- /dev/null +++ b/.github/workflows/playwright-snapshots.yml @@ -0,0 +1,42 @@ +name: "Tests: Playwright snapshots" + +on: + pull_request: + branches: + - main + +jobs: + test: + name: playwright + runs-on: ubuntu-22.04 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Install Playwright browsers + run: npx playwright install --with-deps chromium + + - name: Build CSS + run: npm run build + + - name: Run Playwright tests + run: npm run test:snapshots + + - name: Upload test results + if: failure() + uses: actions/upload-artifact@v4 + with: + name: playwright-report + path: | + test-results/ + playwright-report/ + retention-days: 7 From 3ee69c9cb943d99c912a4151562e5a1f6d613473 Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Sat, 4 Apr 2026 21:10:47 +0000 Subject: [PATCH 4/4] Playwright github action --- .github/workflows/playwright-snapshots.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/playwright-snapshots.yml b/.github/workflows/playwright-snapshots.yml index d40bf37..9b756b6 100644 --- a/.github/workflows/playwright-snapshots.yml +++ b/.github/workflows/playwright-snapshots.yml @@ -1,13 +1,11 @@ -name: "Tests: Playwright snapshots" +name: "Playwright: Snapshot Update" on: - pull_request: - branches: - - main + workflow_dispatch: jobs: - test: - name: playwright + snapshots: + name: Generate Playwright snapshots runs-on: ubuntu-22.04 steps: - name: Checkout code @@ -28,14 +26,17 @@ jobs: - name: Build CSS run: npm run build - - name: Run Playwright tests + - name: Prepare test CSS + run: npm run test:copy-css + + - name: Update Playwright snapshots run: npm run test:snapshots - name: Upload test results if: failure() uses: actions/upload-artifact@v4 with: - name: playwright-report + name: playwright-snapshot-failure path: | test-results/ playwright-report/