name: docs

on:
  push:
    branches:
      - 'master'
    paths:
      - '.github/workflows/htmltest.yml'
      - 'www/*'
  pull_request: {}

jobs:
  htmltest:
    runs-on: ubuntu-latest
    steps:
      -
        name: checkout
        uses: actions/checkout@v2
      -
        name: build
        run: |
          docker run --rm -v ${PWD}/www:/docs squidfunk/mkdocs-material build
      -
        name: htmltest
        uses: wjdp/htmltest-action@master
        with:
          path: www/site
          config: www/htmltest.yml
