This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 325
83 lines (69 loc) · 2.3 KB
/
reviewdog.yml
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
81
82
83
---
name: Review
on: [pull_request]
jobs:
reviewers:
runs-on: ubuntu-latest
steps:
- name: Update
run: sudo apt-get update
- name: Setup Lua
run: sudo apt-get install -y lua5.1 liblua5.1-0-dev
- name: Setup Luacheck
run: sudo apt-get install -y lua-check
- name: Setup xmllint
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
- name: Setup cppcheck
run: sudo apt-get install -y cppcheck
- name: Check out code.
uses: actions/checkout@v1
- name: Setup reviewdog
run: |
mkdir -p $HOME/bin && curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh| sh -s -- -b $HOME/bin
- name: cpplint
uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
filter: "-whitespace/tab\
,-whitespace/line_length\
,-whitespace/tab\
,-build/include_subdir\
,-whitespace/braces\
"
# flags: --linelength=120
- name: cppcheck
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ${{ runner.workspace }}/otservbr-global-archived
cppcheck --version
$HOME/bin/reviewdog -reporter=github-pr-check -runners=cppcheck
- name: luacheck
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
luacheck --version
cd ${{ runner.workspace }}/otservbr-global-archived
$HOME/bin/reviewdog -reporter=github-pr-check -runners=luacheck
- name: luac
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ${{ runner.workspace }}/otservbr-global-archived
luac -v
$HOME/bin/reviewdog -reporter=github-pr-check -runners=luac
- name: xmllint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ${{ runner.workspace }}/otservbr-global-archived
xmllint --version
$HOME/bin/reviewdog -reporter=github-pr-check -runners=xmllint
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
- name: Run yamllint
uses: actionshub/yamllint@main