Skip to content

Commit 9609fbf

Browse files
committed
Restrict triggers for compile and unit tests
1 parent 2c21a69 commit 9609fbf

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ on:
66
# Triggers the workflow on push or pull request only for the main branch
77
push:
88
branches: [ master, main ]
9+
paths:
10+
- 'examples/**'
11+
- 'src/**'
12+
- 'tests/**'
913
pull_request:
1014
branches: [ master, main ]
15+
paths:
16+
- 'examples/**'
17+
- 'src/**'
18+
- 'tests/**'
1119
workflow_dispatch:
1220

1321
# This is the list of jobs that will be run concurrently.

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@ name: TaskScheduler Unit Tests
22
on:
33
push:
44
branches: [ master, main ]
5+
paths:
6+
- 'examples/**'
7+
- 'src/**'
8+
- 'tests/**'
59
pull_request:
610
branches: [ master, main ]
11+
paths:
12+
- 'examples/**'
13+
- 'src/**'
14+
- 'tests/**'
715
workflow_dispatch:
816

917
jobs:

0 commit comments

Comments
 (0)