File: codestyle.yml

package info (click to toggle)
libwpe 1.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 748 kB
  • sloc: ansic: 5,890; sh: 102; cpp: 57; python: 51; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (2)
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
---
name: Code Style
on: [pull_request]

jobs:
  check:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout Head
        uses: actions/checkout@v3
      - name: Fetch Git History
        run: |
          git fetch --no-tags --prune --depth=1 \
            origin +refs/heads/master:refs/remotes/origin/master
      - name: Install Tools
        run: |
          curl -sL https://apt.llvm.org/llvm-snapshot.gpg.key | \
            sudo apt-key add -
          sudo add-apt-repository \
            'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
          sudo apt update
          sudo apt install -y clang-format-13 diffutils
      - name: Check
        run: |
          scripts/check-style -ocode-style.diff origin/master
      - name: Archive Diff
        uses: actions/upload-artifact@v3
        if: failure()
        with:
          name: diff
          path: code-style.diff