-
Notifications
You must be signed in to change notification settings - Fork 396
59 lines (48 loc) · 1.7 KB
/
lint_pull_request.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
name: Code Linting on Pull-Requests
on:
pull_request:
branches: [ master, release* ]
jobs:
clang-tidy-review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install iceoryx dependencies and clang-tidy
uses: ./.github/actions/install-iceoryx-deps-and-clang
- name: Get git diff
id: changed_files
uses: Ana06/[email protected]
- name: diff scan, clang-tidy for all files which are in `.clang-tidy-diff-scans.txt`
run: |
for diff_file in ${{ steps.changed_files.outputs.added_modified }}; do
./tools/scripts/clang_tidy_check.sh scan_list .clang-tidy-diff-scans.txt ${diff_file}
done
check-for-todo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: check for todos which are not linked to issues or violating the format @todo iox-#?
run: ./tools/ci/todo-verificator.sh
verify-links-in-markdown-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Restore lychee cache
uses: actions/cache@v3
if: always()
with:
path: .lycheecache
key: cache-lychee-all-branches
# the cache will not be updated and therefore needs to be recreated after 7 days
retention-days: 7
- name: Link Checker
uses: lycheeverse/[email protected]
with:
fail: true
args: --cache --insecure --max-cache-age 7d --verbose --no-progress './**/*.md' --github-token ${{secrets.GITHUB_TOKEN}} --max-concurrency 1