diff --git a/.github/workflows/clockwork.yml b/.github/workflows/clockwork.yml index 78e2bebb..1448c38c 100644 --- a/.github/workflows/clockwork.yml +++ b/.github/workflows/clockwork.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - pre-releases pull_request: branches: - main @@ -12,6 +11,10 @@ on: jobs: Compilation: uses: ./.github/workflows/compilation.yml + Linter: + uses: ./.github/workflows/linter.yml + secrets: + token: ${{ secrets.ACCESS_TOKEN }} Prerelease: needs: [Compilation] uses: ./.github/workflows/prerelease.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..b933c4d1 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,28 @@ +name: Linter + +on: + workflow_call: + secrets: + token: + required: true + +jobs: + cpp-linter: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: Run cpp-linter + uses: cpp-linter/cpp-linter-action@v2.15.0 + id: linter + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.token }} + with: + style: file + tidy-checks: + files-changed-only: false + thread-comments: false diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 6c359b00..25138e93 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -18,7 +18,7 @@ jobs: - x86-64-v4 runs-on: ubuntu-latest steps: - - name: Check Out Repo + - name: Checkout Repo uses: actions/checkout@v4 with: persist-credentials: false