Skip to content

Commit

Permalink
Change workflows from one to two (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng authored Feb 27, 2024
1 parent 92c61dc commit 80d1730
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run pre-commit

on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch:

jobs:
pre-commit:
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
with:
commands: pip install pytest & pip install -e .
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,3 @@ jobs:
verbose: true # optional (default = false)
- name: Test cpp-linter-hooks
run: sh testing/run.sh
pre-commit:
needs: [test]
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
with:
commands: pip install pytest & pip install -e .

0 comments on commit 80d1730

Please sign in to comment.