-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.18 KB
/
typedoc-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Typedoc CI
on: [push]
jobs:
tests:
name: TypeDoc integration
runs-on: ubuntu-latest
strategy:
fail-fast: False
matrix:
typedoc-version:
- latest
- '~0.21.0'
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: yarn --frozen-lockfile --ignore-optional
env:
CI: true
- name: Build
run: yarn build
env:
CI: true
- name: Link
run: yarn link
- name: TypeDoc integration test
run: |
cd ~ && mkdir -p example/src && cd example
yarn init -y
yarn add -D typedoc@${{ matrix.typedoc-version }} typescript
echo '{"compilerOptions": {"target": "es5","module": "commonjs","lib": ["es2015"],"strict": true,"esModuleInterop": true,"forceConsistentCasingInFileNames": true}}' >> tsconfig.json
echo 'export class HelloWorld {}' >> src/hello-world.ts
yarn link typedoc-plugin-nomnoml
yarn run typedoc --plugin typedoc-plugin-nomnoml \
--out docs \
src