-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.17 KB
/
dogfooding.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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