Skip to content

Commit

Permalink
Add pre-commit github action
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Mar 17, 2024
1 parent 08d6fa2 commit c3a604f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 61 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/clang_format.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/cmake_format.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/pre_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pre-commit

on:
push:
branches:
- master
- 'dev**'
pull_request:
schedule:
- cron: '0 5 * * *'

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: apt
run: |
sudo apt update
sudo apt install -y dos2unix
- uses: pre-commit/[email protected]

0 comments on commit c3a604f

Please sign in to comment.