reuse-action@v3 runs reuse 3.x, which predates REUSE.toml and flagged every file the annotations cover - the actual reason the REUSE job never passed. v5 matches the reuse 5.x used to verify locally. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019FXfh48mASRsE1WEhy9jcM
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# SPDX-FileCopyrightText: 2026 ToServeTheKing <[email protected]>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
name: Lint
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
reuse:
|
|
name: REUSE compliance
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
# v3 ships reuse 3.x, which predates REUSE.toml support and flags
|
|
# every file the annotations cover; v5 (reuse 5.x) understands it.
|
|
- name: REUSE Compliance Check
|
|
uses: fsfe/reuse-action@v5
|
|
|
|
clang-format:
|
|
name: clang-format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
# The .clang-format at the repo root is the one ECM's KDEClangFormat
|
|
# generates at configure time, committed so this check needs no KDE
|
|
# stack. Pinned to the clang-format major used to format the tree -
|
|
# output drifts between major versions.
|
|
- name: Install clang-format
|
|
run: pipx install clang-format==22.1.8
|
|
|
|
- name: Check formatting
|
|
run: |
|
|
find src autotests -name '*.h' -o -name '*.cpp' | \
|
|
xargs clang-format --dry-run --Werror
|