diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
commit | 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch) | |
tree | 081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/CodeIT/.github/workflows/pull-request.yml | |
parent | 640572ecab69291d2c266de2011b795a861e7c21 (diff) |
use maintained theme
Diffstat (limited to 'themes/CodeIT/.github/workflows/pull-request.yml')
-rw-r--r-- | themes/CodeIT/.github/workflows/pull-request.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/themes/CodeIT/.github/workflows/pull-request.yml b/themes/CodeIT/.github/workflows/pull-request.yml new file mode 100644 index 0000000..6da7a74 --- /dev/null +++ b/themes/CodeIT/.github/workflows/pull-request.yml @@ -0,0 +1,31 @@ +name: "Build and checks" +on: + pull_request: + branches: + - master + - dev +jobs: + check_hugo_site: + name: Check Hugo site + runs-on: ubuntu-20.04 + defaults: + run: + working-directory: CodeIT + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + with: + path: 'CodeIT' + fetch-depth: 0 + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + - name: Build static pages + run: hugo --source=exampleSite -v --gc + - name: Check HTML + uses: chabad360/htmlproofer@master + with: + directory: "CodeIT/exampleSite/public" + arguments: --check-html --allow-hash-href --empty-alt-ignore --disable-external |