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 346cf80
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run tests

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

jobs:
test:
runs-on: ubuntu-latest

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: Start dev server
run: yarn dev

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

- name: Run tests
run: yarn test
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}

0 comments on commit 346cf80

Please sign in to comment.