feat: add CLI flag for schema-only doc generation #113
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main, v3.0.0, v2.0.0] | |
| env: | |
| FORCE_COLOR: true | |
| jobs: | |
| prepare-yarn-cache: | |
| if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' }} | |
| name: Prepare Cache | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4 | |
| with: | |
| node-version: "20" | |
| - uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| /home/runner/.cache/Cypress | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| lint: | |
| if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' }} | |
| name: Lint | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4 | |
| with: | |
| node-version: "20" | |
| - uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Check format | |
| run: yarn format | |
| - name: Lint | |
| run: yarn lint --max-warnings 0 | |
| test: | |
| if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' }} | |
| name: Test | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4 | |
| with: | |
| node-version: "20" | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Test | |
| run: yarn test | |
| cypress: | |
| if: ${{ github.repository == 'PaloAltoNetworks/docusaurus-openapi-docs' }} | |
| name: Cypress | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4 | |
| with: | |
| node-version: "20" | |
| - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| /home/runner/.cache/Cypress | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Build | |
| run: yarn build | |
| - name: Cypress | |
| run: yarn test:cypress |