Skip to content

Commit 1b0808b

Browse files
committed
Restrict CI triggers to workflow, src, and test paths
Modified the CI workflow triggers to run only when files in specific paths change. This prevents unnecessary CI runs on unrelated changes, conserving resources and reducing noise in the workflow.
1 parent 33fdabf commit 1b0808b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
name: Test
2-
on: [push, pull_request]
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- "src/**/*"
8+
- "tests/**/*"
9+
- ".github/workflows/test.yml"
10+
push:
11+
paths:
12+
- ".github/workflows/test.yml"
313

414
env:
515
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)