mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 21:23:41 +00:00
linter action first test
due to how actions work this will spam commits
This commit is contained in:
parent
92283e41ba
commit
a368b3db5b
37
.github/workflows/cpp-linter.yaml
vendored
Normal file
37
.github/workflows/cpp-linter.yaml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- "docs/examples/demo/*"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "docs/examples/demo/*"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
metadata: read
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cpp-linter:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cpp-linter/cpp-linter-action@main
|
||||||
|
id: linter
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
style: 'file'
|
||||||
|
tidy-checks: ''
|
||||||
|
files-changed-only: false
|
||||||
|
thread-comments: false #${{ github.event_name == 'pull_request' && 'update' }}
|
||||||
|
tidy-review: true
|
||||||
|
format-review: true
|
||||||
|
|
||||||
|
- name: Fail fast?!
|
||||||
|
if: steps.linter.outputs.checks-failed != 0
|
||||||
|
run: |
|
||||||
|
echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}"
|
||||||
|
# for actual deployment
|
||||||
|
# run: exit 1
|
||||||
Loading…
x
Reference in New Issue
Block a user