File: style.yml

package info (click to toggle)
libwacom 2.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,388 kB
  • sloc: ansic: 7,062; python: 2,527; sh: 65; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 626 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: "Coding style"

on: [ push, pull_request ]

permissions:
  contents: read

# see https://github.com/ssciwr/clang-format-wheel
env:
  PIP_PACKAGES: clang-format

jobs:
  clang-format:
    runs-on: ubuntu-24.04
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - uses: ./.github/actions/pkginstall
        with:
          pip: $PIP_PACKAGES
      - run: clang-format -i -- **/*.c **/*.h
      - run: git diff --exit-code
      - if: failure()
        run: echo "Please run clang-format (or via pre-commit) against the modified sources"