Skip to content

OTS Statistics by kondra for TFS 1.6+ #1743

OTS Statistics by kondra for TFS 1.6+

OTS Statistics by kondra for TFS 1.6+ #1743

Workflow file for this run

name: Check code style
on:
push:
branches:
- master
- v*
paths:
- .clang-format
- .github/workflows/clang-format.yml
- src/**
pull_request:
paths:
- .clang-format
- .github/workflows/clang-format.yml
- src/**
workflow_dispatch:
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup LLVM repository
run: |
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main'
- name: Install dependencies
run: sudo apt update -qq && sudo apt install -yqq clang-format
- name: Check code style
run: clang-format -n -style=file --Werror src/*.{cpp,h}