Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Switch to playwright for the vitest provider.
webdriverio has a higher configuration cost and there's currently a bug
with GitHub actions, linux and chrome that makes it annoying. Switching
to playwright should side-step that all.

Explicitly mention the emnapi packages to ensure they show up in the lock file for runs on linux.
  • Loading branch information
tim-schilling committed Jun 15, 2026
commit 281833271fb1935de78ab48452f29eb9f5606775
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
cache-dependency-path: package-lock.json
- name: Install Node dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium firefox

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The browsers are stock on GH's ubuntu-latest images.
And playwright should be installed via npm ci, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm… you might end up with different versions. I don't know if those NPN deps do any funny install script magic, but the browsers and their web drivers should already be installed.
You can try w/o the line, or consider adding the deps to the package.json file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also run playwright install in CI runs. I could be wrong but I think it's the way to go.

- run: npm test
- uses: davelosert/vitest-coverage-report-action@02f3c2e641286b7fa308cd3e430783103ce6103b # v2.12.0

Expand Down
Loading
Loading