Skip to content

Add dart sass to actions #107

Add dart sass to actions

Add dart sass to actions #107

Workflow file for this run

# .github/workflows/htmltest.yml
# Run htmltest link checker on generated HTML output from user guide
name: Link check with htmltest
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
jobs:
htmltest:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
extended: true
- uses: dw-labs-org/dart-sass-gha@v1
- run: hugo --destination $GITHUB_WORKSPACE/exampleSite/public --themesDir ../../ --theme hugo-fresh
working-directory: exampleSite
- name: Test HTML
# https://github.com/wjdp/htmltest-action/
continue-on-error: true # <- Set to true if run shouldn't fail with broken links
uses: wjdp/htmltest-action@master
with:
# For consistency, use the same config file as for local builds
config: exampleSite/.htmltest.yml
path: exampleSite/public
- name: Archive htmltest results
uses: actions/upload-artifact@v4
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # default is 90 days