开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.
build: e2e yml (#73)
pubuzhixing86c4a0f52e034
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 4639d99..47adf60 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -28,10 +28,23 @@ jobs:node-version: 20cache: 'npm'+ # 缓存 Playwright 的浏览器+ - name: Cache Playwright browsers+ uses: actions/cache@v3+ with:+ path: ~/.cache/ms-playwright+ key: playwright-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}+ restore-keys: |+ playwright-${{ runner.os }}-+- run: npm ci- uses: nrwl/nx-set-shas@v4+ # 安装 Playwright 浏览器和依赖+ - name: Install Playwright+ run: npx playwright install --with-deps+# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud# - run: npx nx-cloud record -- echo Hello World- run: npx nx affected -t lint test build --base=origin/develop --verbose- # - run: npx nx affected --parallel 1 -t e2e-ci --base=origin/develop --verbose+ - run: npx nx affected --parallel 1 -t e2e-ci --base=origin/develop --verbosediff --git a/apps/web-e2e/src/example.spec.ts b/apps/web-e2e/src/example.spec.tsindex 22997c3..55cb6b1 100644--- a/apps/web-e2e/src/example.spec.ts+++ b/apps/web-e2e/src/example.spec.ts@@ -4,5 +4,6 @@ test('has title', async ({ page }) => {await page.goto('/');// Expect h1 to contain a substring.+ expect(await page.title()).toContain('Drawnix - 开源白板工具');expect(await page.locator('drawnix')).toBeTruthy();});