Skip to content

Commit

Permalink
chore(github): skip WebGL tests on macos in github actions
Browse files Browse the repository at this point in the history
Chrome as launched by vitest/webdriverio currently does not support
WebGL on macOS on github actions.

See related bug:
microsoft/playwright#30585
  • Loading branch information
jbms committed Jul 23, 2024
1 parent 1c2ef88 commit 33f5eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
- uses: ./.github/actions/setup-firefox
- name: Run JavaScript tests (including WebGL)
run: npm test
if: ${{ runner.os != 'macOS' }}
- name: Run JavaScript tests (excluding WebGL)
run: npm test -- --project node
if: ${{ runner.os == 'macOS' }}
- name: Run JavaScript benchmarks
run: npm run benchmark
- name: Upload NPM package as artifact
Expand Down
2 changes: 2 additions & 0 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { defineWorkspace } from "vitest/config";
export default defineWorkspace([
{
test: {
name: "node",
environment: "node",
setupFiles: ["./build_tools/vitest/setup-crypto.ts"],
include: ["src/**/*.spec.ts"],
Expand All @@ -13,6 +14,7 @@ export default defineWorkspace([
},
{
test: {
name: "browser",
include: ["src/**/*.browser_test.ts"],
benchmark: {
include: [],
Expand Down

0 comments on commit 33f5eb5

Please sign in to comment.