Skip to content

Commit

Permalink
ci: Always run all CI jobs on main branch
Browse files Browse the repository at this point in the history
If something is merged to the main branch, run the CI on the result.
  • Loading branch information
taminob committed Mar 28, 2024
1 parent fc51a39 commit e775cca
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/cmake-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "CMake Lint"

on:
# always run on main branch
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# run on PR to main branch if relevant files changed
pull_request:
branches: [ main ]
paths:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cpp-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "C++ Build"

on:
# always run on main branch
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# run on PR to main branch if relevant files changed
pull_request:
branches: [ main ]
paths:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cpp-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "C++ Lint"

on:
# always run on main branch
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# run on PR to main branch if relevant files changed
pull_request:
branches: [ main ]
paths:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cpp-unittest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "C++ Unittests"

on:
# always run on main branch
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# run on PR to main branch if relevant files changed
pull_request:
branches: [ main ]
paths:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: "C++/CMake Format"

on:
# always run on main branch
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
# run on PR to main branch if relevant files changed
pull_request:
branches: [ main ]
paths:
Expand Down

0 comments on commit e775cca

Please sign in to comment.