2022-09-30 17:43:23 +03:00
|
|
|
name: Clang Format Checker
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-04 15:02:47 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2022-09-30 17:43:23 +03:00
|
|
|
steps:
|
2023-10-25 12:25:03 +03:00
|
|
|
- uses: actions/checkout@v4
|
2024-04-16 02:54:55 +03:00
|
|
|
- uses: cpp-linter/cpp-linter-action@v2.11.0
|
2022-10-04 15:02:47 +03:00
|
|
|
id: linter
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-09-30 17:43:23 +03:00
|
|
|
with:
|
2022-10-04 15:02:47 +03:00
|
|
|
style: file
|
|
|
|
lines-changed-only: true
|
|
|
|
version: 14
|
|
|
|
- name: Fail fast?!
|
|
|
|
if: steps.linter.outputs.checks-failed > 0
|
|
|
|
run: echo "Some files failed the linting checks!"
|