瀏覽代碼

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

Jorrit Rouwe 4 年之前
父節點
當前提交
0cebcabbb6
共有 2 個文件被更改,包括 13 次插入4 次删除
  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
+
 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