Documentation Workflows #5778
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: Documentation Workflows | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
ensure-docs-generated: | |
name: Ensure docs are generated | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout should always be before setup-go to ensure caching is working | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Generate code | |
run: go run ./cmd/scw-doc-gen | |
env: | |
# We need this to enable autocomplete documentation generation default | |
SHELL: /bin/bash | |
- name: Exit 1 if not empty | |
run: git diff --exit-code | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gaurav-nelson/[email protected] | |
with: | |
use-quiet-mode: 'yes' | |
use-verbose-mode: 'yes' | |
config-file: '.markdownlinkcheck.json' | |
folder-path: 'docs' | |
file-extension: '.md' |