Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Dec 4, 2023
1 parent 3211438 commit 9d8da15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Serve docs
run: npm run docs:dev
- name: Run Playwright tests
run: npm run test:e2e
# - uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"build:bundle": "BROWSERSLIST_ENV=production microbundle src/index.ts --format umd --external none",
"watch": "BROWSERSLIST_ENV=development microbundle src/index.ts --watch --format modern",
"docs:dev": "astro dev --root docs",
"docs:serve": "cd docs && astro preview",
"docs:build": "cd docs && astro check && astro build",
"docs:serve": "astro preview --root docs",
"docs:build": "astro build --root docs",
"prepublishOnly": "npm run build",
"test": "npm run test:e2e",
"test:e2e": "npx playwright test --config ./tests/e2e/playwright.config.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
url: baseURL,
command: "npm run docs:dev",
command: process.env.CI ? "npm run docs:serve" : "npm run docs:dev",
reuseExistingServer: !process.env.CI,
},
});

0 comments on commit 9d8da15

Please sign in to comment.