-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.57 KB
/
Copy pathgovernance-docs-lint.yml
File metadata and controls
59 lines (50 loc) · 1.57 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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