Include Code Correctness check in GitHub test runs (2)
authorColin Clark <colin.clark@cclark.uk>
Mon, 26 Feb 2024 12:14:30 +0000 (12:14 +0000)
committerColin Clark <colin.clark@cclark.uk>
Mon, 26 Feb 2024 12:14:30 +0000 (12:14 +0000)
.github/workflows/check-build-actions.yml
meson.build

index 5741b72..955a9e5 100644 (file)
@@ -100,6 +100,8 @@ jobs:
     #~ - run: sudo apt-get install libjxl-dev
     #~ - run: sudo apt-get install yelp-tools
     - uses: actions/checkout@v3
+      with:
+        fetch-depth: '0'
     - uses: actions/setup-python@v4
     - run: sudo apt-get install xvfb
     - uses: BSFishy/meson-build@v1.0.3
index 5f459c2..4280b16 100644 (file)
@@ -706,7 +706,7 @@ if running_from_git
     clang_tidy_exe = find_program('clang-tidy', required : false)
     if clang_tidy_exe.found()
         git_exe = find_program('git', required : true)
-        modified_file_list = run_command(git_exe, 'diff', '--name-only', './src/*.cc', './src/pan-view/*.cc', './src/view-file/*.cc', check: true)
+        modified_file_list = run_command(git_exe, 'diff', 'origin/master', '--name-only', './src/*.cc', './src/pan-view/*.cc', './src/view-file/*.cc', check: true)
         modified_files = modified_file_list.stdout().strip().split('\n')
 
         foreach modified_file : modified_files