소스 검색

- 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