Skip to content

Added live smoketest options for common test cases (#39) #174

Added live smoketest options for common test cases (#39)

Added live smoketest options for common test cases (#39) #174

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
# Playwright integration tests run separately from the Lint workflow so a slow or flaky
# browser run never blocks the quality gates or coverage upload.
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Get installed Playwright version
id: playwright-version
run: echo "version=$(node -p "require('./package-lock.json').packages['node_modules/@playwright/test'].version")" >> "$GITHUB_OUTPUT"
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v6
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
- name: Install Playwright OS dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: npx playwright install-deps chromium
- name: Integration tests
run: npm run test:integration