Browse Source

Restrict triggers for compile and unit tests

Anatoli Arkhipenko 5 months ago
parent
commit
9609fbf535
2 changed files with 16 additions and 0 deletions
  1. 8 0
      .github/workflows/main.yml
  2. 8 0
      .github/workflows/test.yml

+ 8 - 0
.github/workflows/main.yml

@@ -6,8 +6,16 @@ on:
   # Triggers the workflow on push or pull request only for the main branch
   push:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   pull_request:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   workflow_dispatch:
 
 # This is the list of jobs that will be run concurrently.

+ 8 - 0
.github/workflows/test.yml

@@ -2,8 +2,16 @@ name: TaskScheduler Unit Tests
 on:
   push:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   pull_request:
     branches: [ master, main ]
+    paths:
+      - 'examples/**'
+      - 'src/**'
+      - 'tests/**'
   workflow_dispatch:
 
 jobs: