Debian Codegraph @

3rdparty/catch2/.github/workflows/validate-header-guards.yml

raw symbols SCIP
1 name: Check header guards
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 # Set the type of machine to run on
8 runs-on: ubuntu-20.04
9 steps:
10
11 - name: Checkout source code
12 uses: actions/checkout@v2
13
14 - name: Setup Dependencies
15 uses: actions/setup-python@v2
16 with:
17 python-version: '3.7'
18 - name: Install checkguard
19 run: pip install guardonce
20
21 - name: Check that include guards are properly named
22 run: |
23 wrong_files=$(checkguard -r src/catch2/ -p "name | append _INCLUDED | upper")
24 if [[ $wrong_files ]]; then
25 echo "Files with wrong header guard:"
26 echo $wrong_files
27 exit 1
28 fi
29
30 - name: Check that there are no duplicated filenames
31 run: |
32 ./tools/scripts/checkDuplicateFilenames.py
33
34 - name: Check that all source files have the correct license header
35 run: |
36 ./tools/scripts/checkLicense.py