-
Notifications
You must be signed in to change notification settings - Fork 64
50 lines (46 loc) · 1.34 KB
/
check-file.yaml
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
name: Check file
on: [pull_request]
jobs:
check-manifests-and-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.18.3'
- name: Check manifests
run: |
make manifests
if ! git diff --quiet; then
echo "Need run make manifests"
exit 1
fi
- name: Check generate
run: |
make generate
if ! git diff --quiet; then
echo "Need run make generate"
exit 1
fi
check-docs-markdown:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@main
- name: Install markdownlint
run: sudo npm install -g markdownlint-cli
- name: Markdown lint
run: markdownlint -c .github/workflows/markdownlint.json ./
# - name: Markdown link check
# uses: gaurav-nelson/github-action-markdown-link-check@v1
# with:
# use-quiet-mode: 'yes'
# check-modified-files-only: 'yes'
# base-branch: 'main'
check-docs-directory:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@main
- name: check directory config
run: python3 .github/scripts/directory_check.py directory.json $(pwd)/docs