HTML Proofer: Ignore status code 418 #510
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: Jekyll CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/jekyll-build-workflow.yml | |
| tests: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/site-workflow | |
| - name: Run tests | |
| run: ./run-tests.sh || exit 1 | |
| internal-links: | |
| name: "Absolute Internal Links" | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/site-workflow | |
| - name: Check for internal absolute links | |
| run: bash -c "! grep -REi 'https?://(www.)?opentabletdriver.net' site/_site || exit 1" | |
| html-validation: | |
| name: "Validate HTML" | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/site-workflow | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' # Not needed with a .ruby-version file | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Check final HTML with html-proofer | |
| # status code 418 is sometimes returned by webservers performing anti-scrape methods, so it | |
| # should assume the resource exists instead | |
| run: | | |
| gem install html-proofer | |
| htmlproofer --ignore-status-codes 418 site/_site/ |