-
-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (57 loc) · 1.62 KB
/
check-files.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
name: Check files
on:
push:
pull_request:
jobs:
signature_check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Signatures are not removed
run: |
tools/scripts/test_signatures.sh
News_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: News file up to date
run: |
tools/scripts/notes2news.pl
if git status | grep 'NEWS'; then echo "NEWS is not up to date"; exit 1; fi
if ! grep -q $(grep -Po '(?<=project\(VRPROUTING VERSION )[^;]+' CMakeLists.txt) NEWS; then echo "Missing section in NEWS"; exit 1; fi
license_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Requirements
run: |
sudo apt install -y licensecheck
- name: Run License Check
run: ./tools/scripts/test_license.sh
shell_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Requirements
run: |
sudo apt install -y shellcheck
- name: Run Shell Check
run: ./tools/scripts/test_shell.sh
style-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Requirements
uses: actions/checkout@v2
with:
repository: 'google/styleguide'
ref: "gh-pages"
path: "code_linter/styleguide"
- name: Run linter
run: |
bash ./tools/scripts/code_checker.sh