https://redhat.atlassian.net/browse/ACM-27051 MCP #14682
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: Linting | |
| on: | |
| pull_request: | |
| jobs: | |
| asciidoc: | |
| name: Build AsciiDocs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| - name: Install asciidoctor | |
| run: | | |
| sudo apt-get install -y asciidoctor | |
| - name: Build each .adoc with Asciidoctor, fail on WARN or above | |
| run: | | |
| ./.github/workflows/build_doc.sh | |
| - name: Restore lychee cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: .lycheecache | |
| key: cache-lychee-${{ github.sha }} | |
| restore-keys: cache-lychee- | |
| - name: Link Check | |
| uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| args: >- | |
| --cache | |
| --verbose | |
| --max-cache-age 3d | |
| --no-progress | |
| --max-concurrency 30 | |
| --timeout 30 | |
| --retry-wait-time 30 | |
| --scheme http | |
| --scheme https | |
| --require-https | |
| --accept 200..=299,403,429,302,500,503 | |
| --exclude https://github.com/stolostron/backlog/.* | |
| ./**/main.html | |
| fail: true |