Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b852c30

Browse files
committedFeb 27, 2024
Separate workflows from one to two
1 parent 92c61dc commit b852c30

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed
 

‎.github/workflows/pre-commit.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Run pre-commit
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches: main
8+
workflow_dispatch:
9+
10+
jobs:
11+
pre-commit:
12+
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
13+
with:
14+
commands: pip install pytest & pip install -e .

‎.github/workflows/test.yml

-5
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,3 @@ jobs:
3636
verbose: true # optional (default = false)
3737
- name: Test cpp-linter-hooks
3838
run: sh testing/run.sh
39-
pre-commit:
40-
needs: [test]
41-
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
42-
with:
43-
commands: pip install pytest & pip install -e .

0 commit comments

Comments
 (0)
Please sign in to comment.