Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ coverage:
target: 90%
threshold: 10%

comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: true

ignore:
- "**/*.test.ts"
- "**/*.spec.ts"
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/test-node.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: Test

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

jobs:
test:
name: Test (${{ matrix.os }} - ${{ matrix.browser }})
continue-on-error: true
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
browser: [chrome, firefox, edge, safari, nodejs]
include:
- os: ubuntu-latest
browser: chrome
- os: ubuntu-latest
browser: firefox
- os: ubuntu-latest
browser: nodejs
- os: windows-latest
browser: chrome
- os: windows-latest
browser: edge
- os: macos-latest
browser: safari
exclude:
- os: ubuntu-latest
browser: edge
- os: ubuntu-latest
browser: safari
- os: windows-latest
browser: firefox
- os: windows-latest
browser: safari
- os: windows-latest
browser: nodejs
- os: macos-latest
browser: chrome
- os: macos-latest
browser: firefox
- os: macos-latest
browser: edge
- os: macos-latest
browser: nodejs

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '25.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
shell: bash
run: |
if [ "${{ matrix.browser }}" = "nodejs" ]; then
npm run test
else
npm run test:${{ matrix.browser }}
fi
env:
TEST_HEADLESS: ${{ matrix.browser != 'safari' }}

codecov-chrome-linux:
name: codecov (Chrome Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: '25.x'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests with coverage
run: npm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/coverage-final.json
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
scripts/run-lambdatest.secrets.json
node_modules/
dist/
docs/**/*.html
Expand All @@ -18,3 +19,10 @@ coverage/
*.sublime-project
*.tmproj
.vscode/

# Test
__screenshots__
coverage
*.log
run-lambdatest.prefs.json
.lambdatest
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
npm run build
npx vitest run
npm run test
Loading
Loading