diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/pre-commit.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..5b2bb9d --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,22 @@ +name: Run pre-commit checks + +on: + pull_request: + push: + +jobs: + run-pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install pre-commit + run: pip install pre-commit + + - name: Install cppcheck + run: | + sudo apt-get update + sudo apt-get install -y cppcheck + + - name: Run pre-commit + run: pre-commit run --all-files |
