Skip to content

Commit 9160b34

Browse files
authored
Merge pull request #19 from pangolin-do-golang/cicd
chore: altera config do sonar
2 parents 327a7ba + 26f9ac8 commit 9160b34

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/BuildApp.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
args: >
4545
-Dsonar.projectVersion=${{ env.SHA }}
4646
-Dsonar.language=go
47-
-Dsonar.qualitygate.wait=true
48-
-Dsonar.verbose=true
47+
-Dsonar.qualitygate.wait=true
4948
5049
- name: Login to GitHub Container Registry
5150
uses: docker/login-action@v3

sonar-project.properties

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ sonar.projectKey=pangolin-do-golang_tech-challenge-order-api
77

88
sonar.projectName=tech-challenge-order-api
99

10-
sonar.sources=.
11-
sonar.inclusions=**/internal/*
12-
sonar.exclusions=**/*_test.go,**/mocks/**
10+
sonar.exclusions=**/mocks/**,**/deploy/**,**/docs/**,**/cmd/**
1311

14-
sonar.tests=.
15-
sonar.test.inclusions=**/internal/*_test.go
16-
sonar.test.exclusions=**/mocks/**
12+
sonar.test.inclusions=**/*_test.go
1713
sonar.go.coverage.reportPaths=/github/workspace/coverage.out

0 commit comments

Comments
 (0)