Skip to content

Commit ecffa43

Browse files
authored
chore: adiciona sonar-project.properties
1 parent 08cbc0d commit ecffa43

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/BuildApp.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,10 @@ jobs:
4141
SHA: ${{ steps.short-sha.outputs.sha }}
4242
with:
4343
projectBaseDir: ./
44-
args: >
45-
-Dsonar.organization=pangolin-golang
46-
-Dsonar.projectKey=pangolin-do-golang_tech-challenge-order-api
44+
args: >
4745
-Dsonar.projectVersion=${{ env.SHA }}
4846
-Dsonar.language=go
49-
-Dsonar.qualitygate.wait=true
50-
-Dsonar.go.coverage.reportPaths=./coverage.out
51-
-Dsonar.go.tests.reportPaths=./internal/
47+
-Dsonar.qualitygate.wait=true
5248
-Dsonar.verbose=true
5349
5450
- name: Login to GitHub Container Registry

sonar-project.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Github organization linked to sonarcloud
2+
sonar.organization=pangolin-golang
3+
4+
# Project key from sonarcloud dashboard for Github Action,
5+
# otherwise pick a project key you like
6+
sonar.projectKey=pangolin-do-golang_tech-challenge-order-api
7+
8+
sonar.projectName=tech-challenge-order-api
9+
10+
sonar.sources=.
11+
sonar.exclusions=**/*_test.go,**/vendor/**,**/testdata/*
12+
13+
sonar.tests=.
14+
sonar.test.inclusions=**/internal/*_test.go
15+
sonar.test.exclusions=**/mocks/**
16+
sonar.go.coverage.reportPaths=/github/workspace/coverage.out

0 commit comments

Comments
 (0)