Skip to content

Commit

Permalink
feature: add e2e test for analytics events
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrchen committed Nov 2, 2024
1 parent be4bc20 commit a5545f9
Show file tree
Hide file tree
Showing 12 changed files with 1,392 additions and 0 deletions.
27 changes: 27 additions & 0 deletions e2e/.github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
6 changes: 6 additions & 0 deletions e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/screenshots/*.png
8 changes: 8 additions & 0 deletions e2e/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Learn more: https://buf.build/docs/configuration/v2/buf-gen-yaml
version: v2
inputs:
- directory: ../protos
plugins:
- local: protoc-gen-es
opt: target=ts
out: gen
Loading

0 comments on commit a5545f9

Please sign in to comment.