Skip to content

UPDATE: switch fflint.org to fflint.dev #22

UPDATE: switch fflint.org to fflint.dev

UPDATE: switch fflint.org to fflint.dev #22

Workflow file for this run

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