forked from opentibiabr/otservbr-global-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 2.08 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
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: misspell
uses: reviewdog/action-misspell@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "US"
reporter: github-pr-check
- name: cpplint
uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
flags: --linelength=120
filter: -whitespace/tab
- name: cppcheck
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ${{ runner.workspace }}/otservbr-global
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
$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
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
xmllint --version
$HOME/bin/reviewdog -reporter=github-pr-check -runners=xmllint