Feat/anoshan doc #2
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: Documentation Site PR Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'documentation/**' | |
| - '.github/workflows/docs-pr-checks.yml' | |
| jobs: | |
| audit: | |
| name: Security Audit | |
| runs-on: | |
| - codebuild-wso2_agent-manager-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: documentation/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./documentation | |
| run: npm ci | |
| - name: Security Audit | |
| working-directory: ./documentation | |
| run: npm audit --audit-level=high --omit=dev | |
| build: | |
| name: Build Documentation Site | |
| runs-on: | |
| - codebuild-wso2_agent-manager-${{ github.run_id }}-${{ github.run_attempt }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: documentation/package-lock.json | |
| - name: Install dependencies | |
| working-directory: ./documentation | |
| run: npm ci | |
| - name: Build documentation | |
| working-directory: ./documentation | |
| run: npm run build |