Explorar o código

Restrict triggers for compile and unit tests

Anatoli Arkhipenko hai 3 meses
pai
achega
8cc6e01c3d
Modificáronse 2 ficheiros con 16 adicións e 0 borrados
  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: