-
Notifications
You must be signed in to change notification settings - Fork 26
80 lines (75 loc) · 2.25 KB
/
reviewdog.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Lint
on:
pull_request:
branches:
- main
paths:
- "platform/**/*.mdx"
- "platform/**/*.md"
- "vcluster/**/*.mdx"
- "vcluster/**/*.md"
- "vcluster_versioned_docs/**/*.mdx"
- "vcluster_versioned_docs/**/*.md"
- .github/workflows/reviewdog.yaml
- "*.md"
permissions:
pull-requests: write
jobs:
markdownlint:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: markdownlint
uses: reviewdog/action-markdownlint@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Run Misspell with Reviewdog
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
base_sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ github.event.pull_request.head.sha }}
separator: ","
files: |
platform/**/*.mdx
platform/**/*.md
vcluster/**/*.mdx
vcluster/**/*.md
vcluster_versioned_docs/**/*.mdx
vcluster_versioned_docs/**/*.md
- name: Install venv for vale on ubuntu latest
if: steps.changed-files.outputs.all_changed_files != ''
run: |
venv="$HOME/.local/share/venv"
python3 -m venv "$venv"
echo "$venv/bin" >> $GITHUB_PATH
- name: Run Vale with Reviewdog
uses: errata-ai/vale-action@reviewdog
if: steps.changed-files.outputs.all_changed_files != ''
with:
token: ${{ secrets.GITHUB_TOKEN }}
fail_on_error: true
reporter: github-pr-review
version: 3.7.1
files: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","
filter_mode: file