From a3ddccd8a434706bcb28fdbf50c3cc99b5f0e692 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 16:01:30 +0800 Subject: [PATCH] ci: run Web domain acceptance on the shared web image\n\nUse marqdo-ci-web (Ubuntu + Node/Playwright Chromium from the domestic\nnpmmirror binary mirror, released CLI/Bundle and packaged preview Tool). Pin the\nproduction app Playwright to the image version and use the full Chromium channel\nto avoid the unavailable headless-shell asset; no per-run browser download. --- .woodpecker/ci.yml | 14 ++++++ .../research-workbench-app/package-lock.json | 48 +++++++++++++------ examples/research-workbench-app/package.json | 2 +- .../playwright.config.js | 2 +- 4 files changed, 49 insertions(+), 17 deletions(-) create mode 100644 .woodpecker/ci.yml diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml new file mode 100644 index 0000000..98981fa --- /dev/null +++ b/.woodpecker/ci.yml @@ -0,0 +1,14 @@ +# Web domain acceptance: one published image with Node/Chromium, the released +# CLI/Bundle and the packaged preview Tool. The domain only runs its own +# acceptance entry; no Rust toolchain, browser download or CLI setup per run. +when: + event: [push, pull_request, manual] + +steps: + domain: + image: git.cflmy.cn/cflmy/marqdo-ci-web:3.0.0-rc.5 + environment: + PLAYWRIGHT_BROWSERS_PATH: /ms-playwright + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + commands: + - bash scripts/domain-acceptance.sh diff --git a/examples/research-workbench-app/package-lock.json b/examples/research-workbench-app/package-lock.json index 7842c29..6792913 100644 --- a/examples/research-workbench-app/package-lock.json +++ b/examples/research-workbench-app/package-lock.json @@ -11,23 +11,23 @@ "express": "^4.21.2" }, "devDependencies": { - "@playwright/test": "^1.49.0" + "@playwright/test": "1.49.0" } }, "node_modules/@playwright/test": { - "version": "1.65.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.65.1.tgz", - "integrity": "sha512-y+NCIRm2LvY4slUVWvGh1nujJ8RF/hEisIsq2mtUPgdQC4L701bq5hZGMhrpeXjACvwvO9tj5dJqhvM6TP9lbw==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.0.tgz", + "integrity": "sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.65.1" + "playwright": "1.49.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=20" + "node": ">=18" } }, "node_modules/accepts": { @@ -335,6 +335,21 @@ "node": ">= 0.6" } }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -592,32 +607,35 @@ "license": "MIT" }, "node_modules/playwright": { - "version": "1.65.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.65.1.tgz", - "integrity": "sha512-vJ1FuoOrNwOKHUIVEvSt3jT1L+wjjDpwhwIstKtfvTh8XIG4FG4bIFuvNdMxi81LGfAhUgUZleVFaOLY4RIUUw==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.0.tgz", + "integrity": "sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.65.1" + "playwright-core": "1.49.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=20" + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" } }, "node_modules/playwright-core": { - "version": "1.65.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.65.1.tgz", - "integrity": "sha512-hqPpz7blSMPxWVdoeE1yiBSzXsKiVOd2k+kjCvmUywD2GPO2Dd9HfcWnq9NN0GHbNZDFgZ9JfBFr+X5/BLo0qw==", + "version": "1.49.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.0.tgz", + "integrity": "sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==", "dev": true, "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=20" + "node": ">=18" } }, "node_modules/proxy-addr": { diff --git a/examples/research-workbench-app/package.json b/examples/research-workbench-app/package.json index 18c35d6..eab478e 100644 --- a/examples/research-workbench-app/package.json +++ b/examples/research-workbench-app/package.json @@ -13,6 +13,6 @@ "express": "^4.21.2" }, "devDependencies": { - "@playwright/test": "^1.49.0" + "@playwright/test": "1.49.0" } } diff --git a/examples/research-workbench-app/playwright.config.js b/examples/research-workbench-app/playwright.config.js index 5c968aa..8db15c6 100644 --- a/examples/research-workbench-app/playwright.config.js +++ b/examples/research-workbench-app/playwright.config.js @@ -3,7 +3,7 @@ import { defineConfig } from "@playwright/test"; export default defineConfig({ testDir: "./e2e", timeout: 30_000, - use: { baseURL: "http://127.0.0.1:4173" }, + use: { baseURL: "http://127.0.0.1:4173", channel: "chromium" }, webServer: { command: "node server.js", url: "http://127.0.0.1:4173",