0

Add GitHub action to run pre-commit and check hugo build

This commit is contained in:
Tulir Asokan
2023-11-10 23:42:26 +02:00
parent 6e9ad0d5a9
commit 44758a13ef

23
.github/workflows/hugo.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Hugo
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
- name: Ensure Hugo builds
run: hugo
- name: Install pre-commit
run: pip install pre-commit
- name: Lint with pre-commit
run: pre-commit run -a