kamiazya/typedoc-plugin-nomnoml

View on GitHub
.github/workflows/typedoc-ci.yml

Summary

Maintainability
Test Coverage
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