Skip to content

Commit

Permalink
ci: Add pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-One committed Dec 13, 2023
1 parent 41396e3 commit c0cb9ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,17 @@ jobs:
# being inaccessible.
# - run: bazel run browser:tui

pre-commit:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install pre-commit
run: sudo apt-get update && sudo apt-get install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files


clang-format:
runs-on: ubuntu-22.04
timeout-minutes: 30
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

0 comments on commit c0cb9ca

Please sign in to comment.