Governance Docs Lint #126
Workflow file for this run
This file contains hidden or 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: Governance Docs Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - 'docs/**/*.md' | |
| - '.markdownlint.json' | |
| - '.markdownlintignore' | |
| - 'scripts/lint_governance_docs.sh' | |
| - 'tests/test_lint_governance_docs.sh' | |
| - 'Makefile' | |
| - 'tests/test_lint_governance_docs.sh' | |
| - 'Makefile' | |
| - '.github/workflows/governance-docs-lint.yml' | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'docs/**/*.md' | |
| - '.markdownlint.json' | |
| - '.markdownlintignore' | |
| - 'scripts/lint_governance_docs.sh' | |
| - 'tests/test_lint_governance_docs.sh' | |
| - 'Makefile' | |
| - '.github/workflows/governance-docs-lint.yml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: governance-docs-lint-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-governance-docs: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a | |
| with: | |
| node-version: '20' | |
| - name: Validate lint script syntax | |
| run: bash -n scripts/lint_governance_docs.sh | |
| - name: Validate test script syntax | |
| run: bash -n tests/test_lint_governance_docs.sh | |
| - name: Shellcheck lint scripts | |
| uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 | |
| with: | |
| scandir: "scripts tests" | |
| severity: warning | |
| - name: Run governance docs check target | |
| run: make governance-docs-check |