Skip to content

Commit

Permalink
Add browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Oct 19, 2024
1 parent 53d1362 commit d38a15b
Show file tree
Hide file tree
Showing 6 changed files with 1,626 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Run browser tests (chromium, firefox)
working-directory: tests-browser
run: |
pnpm install && pnpm exec playwright install
pnpm test
pnpm test -- --browser=firefox
- name: Run browser tests (webkit)
working-directory: tests-browser
if: matrix.os == 'macos-latest'
run: |
pnpm test -- --browser=webkit
check-runtimes:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions tests-browser/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "tests-browser",
"description": "Test browser compatibility",
"private": true,
"version": "0.1.0",
"scripts": {
"test": "vitest"
},
"dependencies": {
"@ecies/ciphers": "file:.."
},
"devDependencies": {
"@vitest/browser": "^2.1.3",
"playwright": "^1.48.1",
"vitest": "^2.1.3"
}
}
Loading

0 comments on commit d38a15b

Please sign in to comment.