From de6c0bd923711f78d6a8767e7f594ce7d4749598 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Mon, 26 Feb 2024 12:14:30 +0000 Subject: [PATCH] Include Code Correctness check in GitHub test runs (2) --- .github/workflows/check-build-actions.yml | 2 ++ meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-build-actions.yml b/.github/workflows/check-build-actions.yml index 5741b72f..955a9e55 100644 --- a/.github/workflows/check-build-actions.yml +++ b/.github/workflows/check-build-actions.yml @@ -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 diff --git a/meson.build b/meson.build index 5f459c25..4280b16f 100644 --- a/meson.build +++ b/meson.build @@ -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 -- 2.20.1