diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-13 00:48:40 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-13 00:53:34 +0200 |
| commit | 3a07f97d685be4d43db78ee869732585a13777a9 (patch) | |
| tree | 99b08d13512878c1bf83d1f888a701c036b54f81 /.github/workflows/ci.yml | |
| parent | cmake: move main binary code to src/ (diff) | |
| download | privilege-check-3a07f97d685be4d43db78ee869732585a13777a9.tar.gz privilege-check-3a07f97d685be4d43db78ee869732585a13777a9.zip | |
workflows/ci: add clang-format job
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 409d0c5..e348431 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,25 @@ on: workflow_dispatch: jobs: + lint: + runs-on: ubuntu-latest + name: Linting + if: github.ref == 'refs/heads/master' + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + - name: Set up clang-format + uses: egor-tensin/setup-clang@v2 + with: + # To use the latest clang-format features: + version: 22 + - name: Run clang-format + uses: egor-tensin/clang-format@v1 + with: + version: 22 + build: strategy: matrix: |
