-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.22 KB
/
code_style.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
name: code_style
on: [push]
jobs:
astyle:
timeout-minutes: 1
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
path: repo
- uses: actions/checkout@v3
with:
repository: RaccoonlabDev/code_style
token: ${{ secrets.ACCESS_TOKEN }}
path: repo/code_style
- run: sudo apt-get install -y astyle
- run: ./repo/scripts/code_style/check_astyle.sh
cpplint:
timeout-minutes: 1
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
path: repo
- uses: actions/checkout@v3
with:
repository: RaccoonlabDev/code_style
token: ${{ secrets.ACCESS_TOKEN }}
path: repo/code_style
- run: pip3 install cpplint
- run: ./repo/scripts/code_style/lint.sh
crlf:
timeout-minutes: 1
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
path: repo
- uses: actions/checkout@v3
with:
repository: RaccoonlabDev/code_style
token: ${{ secrets.ACCESS_TOKEN }}
path: repo/code_style
- run: sudo apt-get install -y dos2unix
- run: ./repo/scripts/code_style/crlf.sh