Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/actions/setup-playwright/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ runs:
- name: Install dependencies
run: yarn install
shell: bash

- name: Cache Playwright browsers
id: cache-playwright
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: playwright-browsers-${{ runner.os }}-${{ hashFiles('**/package.json') }}
restore-keys: |
playwright-browsers-${{ runner.os }}-
save-always: true

- name: Install Playwright browsers
run: yarn playwright install chromium
if: steps.cache-playwright.outputs.cache-hit != 'true'
run: yarn playwright install --with-deps
shell: bash
41 changes: 41 additions & 0 deletions .github/workflows/run-smoke-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run smoke tests

on:
pull_request:
branches: [ main ]
paths:
- 'playwright.config.ts'
- 'package.json'
- 'yarn.lock'
- 'tsconfig.json'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-smoke-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
strategy:
matrix:
project: [chromium, firefox, webkit]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js and Playwright
uses: ./.github/actions/setup-playwright

- name: Run smoke tests
run: yarn playwright test --project=${{ matrix.project }} --grep @smoke

- name: Upload test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: smoke-tests-results-${{ matrix.project }}-${{ github.run_id }}
path: playwright-report/
retention-days: 7
Loading