Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
ci(pre-commit): add github action for linting/formatting
Browse files Browse the repository at this point in the history
that will run and check the pre-commit hooks on PRs and updates on the
master branch
  • Loading branch information
timonegk authored and texhnolyze committed Nov 22, 2023
1 parent 28409f8 commit 0ae6a60
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Code style checks with pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Install cppcheck
run: sudo apt install cppcheck -y
- uses: pre-commit/[email protected]

0 comments on commit 0ae6a60

Please sign in to comment.