Browse Source

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

Jorrit Rouwe 4 years ago
parent
commit
0cebcabbb6
2 changed files with 13 additions and 4 deletions
  1. 12 3
      .github/workflows/sonar-cloud.yml
  2. 1 1
      sonar-project.properties

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

@@ -1,10 +1,19 @@
 name: Sonar Cloud
 name: Sonar Cloud
+
 on:
 on:
   push:
   push:
-    branches:
-      - master
+    branches: [ master ]
+    paths-ignore:
+      - 'Docs/**'
+      - '**.md'
+      - '**.txt'
   pull_request:
   pull_request:
-    types: [opened, synchronize, reopened]
+    branches: [ master ]
+    paths-ignore:
+      - 'Docs/**'
+      - '**.md'
+      - '**.txt'
+
 jobs:
 jobs:
   build:
   build:
     name: 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
 # Encoding of the source code. Default is default system encoding
 #sonar.sourceEncoding=UTF-8
 #sonar.sourceEncoding=UTF-8
 
 
-sonar.cfamily.threads=1
+sonar.cfamily.threads=2
 sonar.cfamily.cache.enabled=false
 sonar.cfamily.cache.enabled=false