Hugo HTML lint #793
Workflow file for this run
This file contains 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: Hugo HTML lint | |
permissions: | |
contents: read | |
concurrency: | |
group: html-lint-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
merge_group: | |
pull_request: | |
branches: | |
- master | |
- stable | |
workflow_dispatch: | |
jobs: | |
test-skip-check: | |
uses: ./.github/workflows/skip-test-check.yml | |
permissions: | |
pull-requests: read | |
with: | |
labels: '["CI:bors-skip-html-lint"]' | |
secrets: inherit | |
htmltest: | |
runs-on: ubuntu-latest | |
name: Run htmltest to lint Hugo output | |
needs: test-skip-check | |
steps: | |
- name: Dump context | |
uses: crazy-max/ghaction-dump-context@v2.1.0 | |
- name: Checkout code | |
if: ${{ needs.test-skip-check.outputs.no-skip }} | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Hugo | |
if: ${{ needs.test-skip-check.outputs.no-skip }} | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.97.3' | |
extended: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run Hugo in the background | |
if: ${{ needs.test-skip-check.outputs.no-skip }} | |
run: cargo run -- hugo & | |
# Skip running for now | |
- name: Run htmltest | |
if: ${{ false }} | |
run: | | |
make htmltest | |
# Job that follows the success of all required jobs in this workflow. | |
# Used by Bors to detect that all required jobs have completed successfully | |
done: | |
name: Pass html lint | |
if: github.event_name == 'merge_group' | |
needs: htmltest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Done | |
run: echo "Done!" |