mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 04:27:45 -07:00
CI: Cleanup (#6959)
* Label & variables * fix bracket * other workflows * fix trailing whitespace * fixes
This commit is contained in:
parent
a60e5ea05b
commit
dcaa918eb0
6 changed files with 255 additions and 248 deletions
13
.github/workflows/desktop-lint.yml
vendored
13
.github/workflows/desktop-lint.yml
vendored
|
|
@ -1,7 +1,7 @@
|
|||
name: Code Style (C++)
|
||||
|
||||
on:
|
||||
# push trigger not needed for linting, we do not allow direct pushes to master
|
||||
# Push trigger not needed for linting, we do not allow direct pushes to master
|
||||
pull_request:
|
||||
paths:
|
||||
- '*/**' # matches all files not in root
|
||||
|
|
@ -21,17 +21,20 @@ jobs:
|
|||
runs-on: ubuntu-slim
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 20 # should be enough to find merge base
|
||||
|
||||
- name: Install dependencies
|
||||
- name: "Install dependencies"
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends clang-format cmake-format shellcheck
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
clang-format \
|
||||
cmake-format \
|
||||
shellcheck
|
||||
|
||||
- name: Check code formatting
|
||||
- name: "Check code formatting"
|
||||
shell: bash
|
||||
run: ./.ci/lint_cpp.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue