Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
version: latest

- name: Test
run: go test ./...
run:
go test -covermode=atomic -coverpkg=./... -coverprofile=coverage.out
-v ./...

- name: Build
run: go build -o ./yamllint-action .

- name: SonarCloud Scan
uses: SonarSource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

push:
name: Push
needs: test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea
dist/
yamllint-action
coverage.out
20 changes: 20 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sonar.organization=staffbase
sonar.projectKey=com.staffbase:yamllint-action
sonar.projectDescription=Yamllint Action
sonar.links.homepage=https://github.com/Staffbase/yamllint-action
sonar.sourceEncoding=UTF-8

sonar.scm.provider=git

sonar.sources=.
# Ignore:
# - tests
# - mocks
# - commandline heavy initialization code (main and cmd)
# - generated code (pkg/externaldns)
sonar.exclusions=**/*_test.go

sonar.tests=.
sonar.test.inclusions=**/*_test.go

sonar.go.coverage.reportPaths=coverage.out
Loading