File: codingstyle.yml

package info (click to toggle)
multipath-tools 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,992 kB
  • sloc: ansic: 63,788; perl: 1,622; makefile: 729; sh: 647; pascal: 150
file content (43 lines) | stat: -rw-r--r-- 972 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Check coding style

on:
  push:
    branches:
      - master
      - queue
      - tip
      - 'stable-*'
    paths:
      - '.clang-format'
      - '.github/workflows/codingstyle.yaml'
      - '**.h'
      - '**.c'
  pull_request:
    branches:
      - master
      - queue
      - 'stable-*'
    paths:
      - '.clang-format'
      - '.github/workflows/codingstyle.yaml'
      - '**.h'
      - '**.c'

permissions:
  contents: read

jobs:
  stylecheck:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: >-
          echo "BASEREF=${{ github.event.pull_request.base.sha }}" >>$GITHUB_ENV
        if: ${{ github.event_name == 'pull_request' }}
      - run: >-
          echo "BASEREF=${{ github.event.before }}" >>$GITHUB_ENV
        if: ${{ github.event_name == 'push' }}
      - run: git fetch --depth=1 origin ${{ env.BASEREF }}
      - uses: yshui/git-clang-format-lint@master
        with:
          base: ${{ env.BASEREF }}