Skip to content

Commit

Permalink
Run testss on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
sockmaster27 committed Jan 7, 2025
1 parent 3b09ba6 commit 7cb64ff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 34 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm run build

test:
runs-on: self-hosted
runs-on: macos-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Install Dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: npx playwright install --with-deps && npx playwright install chrome
- name: Run Tests
run: npm test
- uses: actions/upload-artifact@v4
Expand Down
48 changes: 22 additions & 26 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export default defineConfig({
},

projects: [
// {
// name: "Firefox <No WebGPU>",
// use: {
// ...devices["Desktop Firefox"],
// },
// },
{
name: "Firefox <No WebGPU>",
use: {
...devices["Desktop Firefox"],
},
},
/* TODO: Test this once Firefox supports WebGPU in stable */
// {
// name: "Firefox",
Expand All @@ -52,34 +52,30 @@ export default defineConfig({
// },
// },
// },
// {
// name: "Chromium <No WebGPU>",
// use: {
// ...devices["Desktop Chrome"],
// channel: "chromium",
// launchOptions: {
// args: [...chromiumIgnoreDpi],
// },
// },
// },
{
name: "Chromium",
name: "Chromium <No WebGPU>",
use: {
...devices["Desktop Chrome"],
channel: "chromium",
launchOptions: {
args: [
...chromiumIgnoreDpi,
"--enable-unsafe-webgpu",
"--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan",
],
args: [...chromiumIgnoreDpi],
},
},
},
// {
// name: "WebKit <No WebGPU>",
// use: { ...devices["Desktop Safari"] },
// },
{
name: "Chromium",
use: {
...devices["Desktop Chrome"],
channel: "chrome",
launchOptions: {
args: [...chromiumIgnoreDpi],
},
},
},
{
name: "WebKit <No WebGPU>",
use: { ...devices["Desktop Safari"] },
},
/* TODO: Test these as well */
// {
// name: 'Mobile Chrome',
Expand Down
6 changes: 0 additions & 6 deletions tests/test-sites.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ builds.forEach(({ name, port }) => {

apis.forEach(api => {
test.describe(api, () => {
test("Test", async ({ page }) => {
await page.goto("chrome://gpu");
await page.pdf({
path: "test.pdf",
});
});
test("Hello world", async ({ page, browserName }, info) => {
const pageName = "hello-world";

Expand Down

0 comments on commit 7cb64ff

Please sign in to comment.