mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 08:14:47 -07:00
Some checks are pending
Build Desktop / Configure (push) Waiting to run
Build Desktop / Debian 13 (push) Blocked by required conditions
Build Desktop / Debian 12 (push) Blocked by required conditions
Build Desktop / Fedora 44 (push) Blocked by required conditions
Build Desktop / Fedora 43 (push) Blocked by required conditions
Build Desktop / Servatrice_Debian 12 (push) Blocked by required conditions
Build Desktop / Ubuntu 26.04 (push) Blocked by required conditions
Build Desktop / Ubuntu 24.04 (push) Blocked by required conditions
Build Desktop / Arch (push) Blocked by required conditions
Build Desktop / macOS 14 (push) Blocked by required conditions
Build Desktop / macOS 15 (push) Blocked by required conditions
Build Desktop / macOS 13 Intel (push) Blocked by required conditions
Build Desktop / macOS 15 Debug (push) Blocked by required conditions
Build Desktop / Windows 10 (push) Blocked by required conditions
Build Docker Image / amd64 & arm64 (push) Waiting to run
* Label & variables * fix bracket * other workflows * fix trailing whitespace * fixes
40 lines
918 B
YAML
40 lines
918 B
YAML
name: Code Style (C++)
|
|
|
|
on:
|
|
# Push trigger not needed for linting, we do not allow direct pushes to master
|
|
pull_request:
|
|
paths:
|
|
- '*/**' # matches all files not in root
|
|
- '!**.md'
|
|
- '!.ci/**'
|
|
- '!.github/**'
|
|
- '!.tx/**'
|
|
- '!doc/**'
|
|
- '.ci/lint_cpp.sh'
|
|
- '.github/workflows/desktop-lint.yml'
|
|
- '.clang-format'
|
|
- '.cmake-format.json'
|
|
- 'format.sh'
|
|
|
|
jobs:
|
|
format:
|
|
runs-on: ubuntu-slim
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 20 # should be enough to find merge base
|
|
|
|
- name: "Install dependencies"
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends \
|
|
clang-format \
|
|
cmake-format \
|
|
shellcheck
|
|
|
|
- name: "Check code formatting"
|
|
shell: bash
|
|
run: ./.ci/lint_cpp.sh
|