Skip to content

Commit

Permalink
test: switch to Vitest and Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
flekschas committed Nov 23, 2024
1 parent 86355cd commit 0c2afbe
Show file tree
Hide file tree
Showing 14 changed files with 4,146 additions and 3,995 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build

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

jobs:
build:
Expand All @@ -14,18 +14,23 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build --if-present
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
env:
CI: true

test:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- run: npm test
timeout-minutes: 5
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ node_modules/*

docs
stats.html

tests/__screenshots__
Loading

0 comments on commit 0c2afbe

Please sign in to comment.