Skip to content

Commit

Permalink
Run Playwright tests in CI
Browse files Browse the repository at this point in the history
So that we have some test coverage in this repo.
  • Loading branch information
trotzig committed Dec 18, 2024
1 parent 2616c02 commit 59bd1cb
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
environment: Happo secrets

steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install Playwright browsers
run: npx playwright install chromium

- name: Start dev server
run: |
yarn dev &
# Wait for server to be ready
sleep 5
- name: Echo key
run: echo ${{ secrets.HAPPO_API_KEY }}

- name: Run tests
run: yarn test

0 comments on commit 59bd1cb

Please sign in to comment.