From ca04a8d6f8f1d5dcdc86e966b074c2344a17bbea Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 8 Sep 2023 23:42:37 +0100 Subject: [PATCH 1/2] ci, gha: Add "lint" job --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6e8238667..314fdcb6c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,20 @@ env: MAKEJOBS: '-j10' jobs: + lint: + name: 'lint' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: | + sudo ./ci/lint/04_install.sh + echo "PATH=/python_build/bin:$PATH" >> "$GITHUB_ENV" + echo "CIRRUS_PR=${{ github.event.number }}" >> "$GITHUB_ENV" + - run: | + ./ci/lint/06_script.sh + macos-native-x86_64: name: 'macOS 13 native, x86_64, no depends, sqlite only, gui' # Use latest image, but hardcode version to avoid silent upgrades (and breaks). From f4149bd250d778d81882ad9e467e7c0a8dd99caf Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 9 Sep 2023 00:05:35 +0100 Subject: [PATCH 2/2] test: Make linter catch tabs in `*.qml` files --- test/lint/lint-whitespace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lint/lint-whitespace.py b/test/lint/lint-whitespace.py index ed5d459f44..b3b81399c3 100755 --- a/test/lint/lint-whitespace.py +++ b/test/lint/lint-whitespace.py @@ -76,7 +76,7 @@ def get_diff(commit_range, check_only_code): exclude_args = [":(exclude)" + dir for dir in EXCLUDED_DIRS] if check_only_code: - what_files = ["*.cpp", "*.h", "*.md", "*.py", "*.sh"] + what_files = ["*.cpp", "*.h", "*.md", "*.py", "*.sh", "*.qml"] else: what_files = ["."]