-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (40 loc) · 1.09 KB
/
pr-quality.yml
File metadata and controls
47 lines (40 loc) · 1.09 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
name: PR Quality
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main]
permissions:
contents: read
jobs:
quality:
name: Lint and Repo Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate required root files
run: |
test -f README.md
test -f LICENSE
test -f NOTICE
test -f TRADEMARKS.md
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v18
with:
globs: |
README.md
CONTRIBUTING.md
SECURITY.md
BUSINESS.md
ATTRIBUTION.md
TRADEMARKS.md
docs/opencto/**/*.md
opencto/opencto-dashboard/**/*.md
!**/node_modules/**
- name: Workflow YAML lint
run: |
python3 -m pip install --quiet yamllint
yamllint .github/workflows/*.yml
- name: Shell script syntax check
run: |
find . -type f -name '*.sh' -print0 | xargs -0 -I{} bash -n "{}"