Skip to content

Commit

Permalink
fix: 运行时判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Eavid committed Jun 27, 2024
1 parent 4d20f0a commit 117d2b5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
- feat/*
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -20,6 +20,9 @@ jobs:
run: pnpm run ci:test
- name: Build
run: pnpm run -r ci:build
- name: Install browser
run: pnpm run install-deps
working-directory: "./e2e"
- name: E2E test
run: pnpm ci:e2e
run: pnpm run ci:e2e
working-directory: ./e2e
5 changes: 3 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
"scripts": {
"e2e:local": "playwright test --ui",
"ci:e2e": "playwright test -c playwright.ci.config.ts",
"ci:e2e-ui":"pnpm ci:e2e --ui",
"codegen": "playwright codegen --channel msedge"
"ci:e2e-ui": "pnpm ci:e2e --ui",
"codegen": "playwright codegen --channel msedge",
"install-deps": "playwright install"
},
"devDependencies": {
"@asnc/vio": "workspace:^",
Expand Down
2 changes: 2 additions & 0 deletions vio/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export class InstanceDisposedError extends Error {
export const packageDir = path.resolve(import.meta.dirname, "..");
export const runtime = (function () {
try {
//@ts-ignore
Deno.serve;
return "deno";
} catch (error) {
return "node";
Expand Down

0 comments on commit 117d2b5

Please sign in to comment.