Skip to content

Commit

Permalink
ci: PR 检查添加文档构建测试 (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikaibenkai authored Jan 30, 2024
1 parent 53985a2 commit 9ffbbc5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v4
with:
path: node_modules
key: dependencies
restore-keys: dependencies
- run: pnpm install
- run: pnpm lint

Expand All @@ -34,10 +29,19 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v4
with:
path: node_modules
key: dependencies
restore-keys: dependencies
- run: pnpm install
- run: pnpm test

docs:
name: 文档构建测试
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install
- run: pnpm docs:build
1 change: 1 addition & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"entryPoints": [
"src/index.ts"
],
"readme": "docs/api/index.md",
"out": "docs/api",
"cleanOutputDir": false,
"jsDocCompatibility": true,
Expand Down

0 comments on commit 9ffbbc5

Please sign in to comment.