ADD: support for validating feeds (RSS/Atom/JsonFeed) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Dogfooding" | |
# Why is this called "dogfooding"? https://en.wikipedia.org/wiki/Eating_your_own_dog_food | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
dogfooding: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Build | |
run: | | |
go build -o ./fflint cmd/fflint/main.go | |
- name: Check favicon.ico | |
run: | | |
./fflint ico --show-tests=all docs/favicon.ico | |
- name: Check markdown frontmatter | |
run: | | |
./fflint frontmatter --required=title "docs/**/*.md" | |
# LATER: build website w/Jekyll and test the generated files | |
- name: Generate reports | |
run: | | |
echo "# Dogfooding fflint" >$GITHUB_STEP_SUMMARY | |
echo "## Extensions in use" >>$GITHUB_STEP_SUMMARY | |
./fflint ext --output=markdown "./**" >>$GITHUB_STEP_SUMMARY | |
echo "" >>$GITHUB_STEP_SUMMARY | |
echo "## Content types in use" >>$GITHUB_STEP_SUMMARY | |
./fflint mimetype --output=markdown "./**" >>$GITHUB_STEP_SUMMARY |