mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-26 18:34:36 +08:00
chore: improve ci testing
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
run: pnpm install
|
||||
|
||||
- name: Install Playwright
|
||||
run: pnpm exec playwright install --with-deps chromium
|
||||
run: pnpm run test:setup:ci
|
||||
|
||||
- name: Lint
|
||||
run: pnpm run lint
|
||||
|
||||
@ -14,7 +14,7 @@ This project targets Vue 3 + TypeScript with ECMAScript modules. Follow the exis
|
||||
|
||||
## Testing Guidelines
|
||||
|
||||
For complete and up-to-date testing and CI guidance, see `tests/TESTING.md`.
|
||||
For complete and up-to-date testing and CI guidance, see [`tests/TESTING.md`](tests/TESTING.md).
|
||||
|
||||
## Commit & Pull Request Guidelines
|
||||
|
||||
|
||||
@ -436,6 +436,8 @@ pnpm dev
|
||||
|
||||
Open `http://localhost:5173` to see the demo.
|
||||
|
||||
For testing and CI details, see [`tests/TESTING.md`](tests/TESTING.md).
|
||||
|
||||
## Notice
|
||||
|
||||
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).
|
||||
|
||||
@ -436,6 +436,8 @@ pnpm dev
|
||||
|
||||
打开 `http://localhost:5173` 来查看 demo。
|
||||
|
||||
更多测试与 CI 说明请参见 [`tests/TESTING.md`](tests/TESTING.md)。
|
||||
|
||||
## 声明
|
||||
|
||||
The Apache Software Foundation [Apache ECharts, ECharts](https://echarts.apache.org/), Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the [Apache Software Foundation](https://www.apache.org/).
|
||||
|
||||
@ -18,6 +18,8 @@
|
||||
"dev:build": "vite build",
|
||||
"dev:preview": "vite preview",
|
||||
"dev:typecheck": "vue-tsc -p ./demo",
|
||||
"test:setup": "playwright install chromium",
|
||||
"test:setup:ci": "playwright install --with-deps chromium",
|
||||
"docs": "jiti ./scripts/docs.ts",
|
||||
"release": "bumpp --execute \"pnpm run docs\" --all",
|
||||
"test": "vitest run",
|
||||
|
||||
@ -10,7 +10,7 @@ We run Vitest in browser mode using Playwright (Chromium) with `vitest-browser-v
|
||||
## Run locally
|
||||
|
||||
- Install dependencies: `pnpm install`
|
||||
- Install Chromium: `pnpm exec playwright install chromium`
|
||||
- Install Chromium: `pnpm test:setup`
|
||||
- Run tests: `pnpm test`
|
||||
- Coverage (V8): `pnpm test:coverage`
|
||||
- HTML report: `coverage/browser/index.html`
|
||||
|
||||
Reference in New Issue
Block a user