Skip to content

Let's include E2E tests for the website #13

Let's include E2E tests for the website

Let's include E2E tests for the website #13

Workflow file for this run

name: E2E Website tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
test-docs:
name: E2E Testing
runs-on: ubuntu-latest
env:
CI: true
defaults:
run:
working-directory: scorecards-site
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
with:
fetch-depth: 0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 #v5
with:
node-version: 22
- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn add -D @playwright/test chromatic @chromatic-com/playwright
- name: Run Playwright tests
run: yarn chromatic --playwright --project-token="$CHROMATIC_PROJECT_TOKEN"
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}