2
0
Эх сурвалжийг харах

- Don't trigger sonar on documentation changes
- Sonar to use 2 threads (the github action runners have 2 threads)

Jorrit Rouwe 4 жил өмнө
parent
commit
0cebcabbb6

+ 12 - 3
.github/workflows/sonar-cloud.yml

@@ -1,10 +1,19 @@
 name: Sonar Cloud
+
 on:
   push:
-    branches:
-      - master
+    branches: [ master ]
+    paths-ignore:
+      - 'Docs/**'
+      - '**.md'
+      - '**.txt'
   pull_request:
-    types: [opened, synchronize, reopened]
+    branches: [ master ]
+    paths-ignore:
+      - 'Docs/**'
+      - '**.md'
+      - '**.txt'
+
 jobs:
   build:
     name: Build

+ 1 - 1
sonar-project.properties

@@ -11,5 +11,5 @@ sonar.sources=Jolt
 # Encoding of the source code. Default is default system encoding
 #sonar.sourceEncoding=UTF-8
 
-sonar.cfamily.threads=1
+sonar.cfamily.threads=2
 sonar.cfamily.cache.enabled=false