From 505706ff126e335b342f0ec506e9a8383b675ff1 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Wed, 14 Sep 2022 15:01:59 +0300 Subject: [PATCH] Create formatter.yml --- .github/workflows/formatter.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/formatter.yml diff --git a/.github/workflows/formatter.yml b/.github/workflows/formatter.yml new file mode 100644 index 0000000..7b463ee --- /dev/null +++ b/.github/workflows/formatter.yml @@ -0,0 +1,21 @@ +name: cpp-linter + +on: pull_request + +jobs: + cpp-linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cpp-linter/cpp-linter-action@v2 + id: linter + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: file + + - name: Fail fast?! + if: steps.linter.outputs.checks-failed > 0 + run: echo "Some files failed the linting checks!" + # for actual deployment + # run: exit 1