Bump ws in /src/CrestApps.Docs #264
Workflow file for this run
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 Documentation | |
| on: | |
| pull_request: | |
| paths: | |
| - 'src/CrestApps.Docs/**' | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate-docs: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: src/CrestApps.Docs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: src/CrestApps.Docs/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build and validate links | |
| run: | | |
| npx docusaurus build 2>&1 | tee build-output.txt | |
| if grep -qi "broken link" build-output.txt; then | |
| echo "" | |
| echo "::error::Broken links detected in documentation!" | |
| grep -i "broken link" build-output.txt | |
| exit 1 | |
| fi | |
| echo "Documentation build successful. All links are valid." |