Skip to content

Commit

Permalink
Add GitHub action to run pre-commit and check hugo build
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 10, 2023
1 parent 6e9ad0d commit 44758a1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 44758a1

Please sign in to comment.