ci(fix): Attempt to fix release.yml #565
Workflow file for this run
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: Docs Checks | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-func-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install gomplate | |
run: | | |
docker create --name gomplate hairyhenderson/gomplate | |
docker cp gomplate:/gomplate . | |
sudo mv gomplate /usr/local/bin | |
- name: Make sure function docs are up-to-date | |
run: | | |
make --always-make gen-func-docs GOOS= GOARCH= GO=echo | |
git diff --exit-code | |
if [ $? -ne 0 ]; then | |
echo "Function docs are out of date. Please run 'make gen-func-docs' locally and commit the changes." | |
exit 1 | |
fi | |
muffet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Hugo setup | |
uses: peaceiris/[email protected] | |
with: | |
# keep this in sync with netlify.toml | |
hugo-version: '0.128.0' | |
- uses: actions/checkout@v4 | |
- name: Install muffet | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh release --repo raviqqe/muffet download -p muffet_linux_amd64.tar.gz | |
tar xvf muffet_linux_amd64.tar.gz muffet | |
sudo mv muffet /usr/local/bin | |
- name: Serve the site and check links | |
run: | | |
set -ex | |
cd docs | |
hugo --renderToMemory | |
hugo serve --watch=false --renderToMemory & | |
sleep 2 | |
muffet http://localhost:1313 \ | |
-r8 --max-connections-per-host=4 --buffer-size=8192 \ | |
--exclude="https://github\.com.*" \ | |
--exclude="https://docs\.aws.*" \ | |
--exclude="https://linux.die\.net.*" \ | |
--exclude="https://jqplay\.org.*" \ | |
--exclude="https://json\.org.*" \ | |
--exclude="https://goessner\.net.*" \ | |
--exclude="http://opensource\.org.*" | |
kill %1 |