Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-11-07 20:59:37 +0100
committerGitHub2020-11-07 20:59:37 +0100
commita9941d42315b3d9db93a185666004b04d56af3e1 (patch)
treef32d956c5c66ada5c2df630325256d8868013a08 /.github
parentfefa001bb629e675a2625e6f3b71fcf316a5a2d9 (diff)
parent39e13bf530def088c1f87a224de48fdc1ac5e834 (diff)
downloadcatch3-a9941d42315b3d9db93a185666004b04d56af3e1.tar.gz
Merge pull request #2098 from innerout/check-duplicates
Adds duplication check for source files in CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/validate-header-guards.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/validate-header-guards.yml b/.github/workflows/validate-header-guards.yml
index c57bd8f3..6aa905a3 100644
--- a/.github/workflows/validate-header-guards.yml
+++ b/.github/workflows/validate-header-guards.yml
@@ -5,16 +5,13 @@ name: Check header guards
on: [push, pull_request]
jobs:
- # Set the job key. The key is displayed as the job name
- # when a job name is not provided
- checkguard:
- # Name the Job
- name: Check include guard naming convention
+ build:
# Set the type of machine to run on
runs-on: ubuntu-latest
-
steps:
- - uses: actions/checkout@v2
+
+ - name: Checkout source code
+ uses: actions/checkout@v2
- name: Setup Dependencies
uses: actions/setup-python@v2
@@ -23,7 +20,8 @@ jobs:
- name: Install checkguard
run: pip install guardonce
- - name: Run checkguard
+ # Check include guard naming convention
+ - name: checkguard
run: |
wrong_files=$(checkguard -r src/catch2/ -p "name | append _INCLUDED | upper")
if [[ $wrong_files ]]; then
@@ -31,3 +29,8 @@ jobs:
echo $wrong_files
exit 1
fi
+
+ # Check duplicate files for include guard conflicts
+ - name: checknames
+ run: |
+ python tools/scripts/checkDuplicateFilenames.py