Skip to content

Commit

Permalink
ci(*): add docs site content check (fermyon#526)
Browse files Browse the repository at this point in the history
Signed-off-by: Vaughn Dice <[email protected]>
  • Loading branch information
vdice authored May 27, 2022
1 parent aa5288d commit ec9a74b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,18 @@ jobs:
- name: "Test Go SDK"
if: ${{ matrix.config.platformAgnosticChecks }}
run: make test-sdk-go

check-docs:
name: Check Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install bart
run: |
curl -LOs https://github.com/fermyon/bartholomew/releases/download/v0.3.0/bart
chmod +x bart
mv bart /usr/local/bin
- name: Check docs site content
run: make check-content
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ doc:
DATE=$(shell date --utc +%Y-%m-%dT%TZ)
echo "title = \"<insert title here>\"\ntemplate = \"main\"\ndate = \"`date --utc +%Y-%m-%dT%TZ`\"\n" > docs/content/$(SPIN_DOC_NAME)
echo "[extra]\nurl = \"https://github.com/fermyon/spin/blob/main/docs/content/$(SPIN_DOC_NAME)\"\n\n---\n" >> docs/content/$(SPIN_DOC_NAME)

.PHONY: check-content
check-content:
cd docs && bart check content/* && bart check content/**/*

0 comments on commit ec9a74b

Please sign in to comment.