Skip to content

Commit

Permalink
[#16] .Fix set sonar orga
Browse files Browse the repository at this point in the history
[#16] .Fix


[#16] .Fix


[#16] .Fix


[#16] .Fix


[#16] .Fix


[#16] .Fix
  • Loading branch information
ThomasObenaus committed Feb 17, 2020
1 parent bd17ac6 commit af6d363
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: coverage
run: make test.report

- name: list report files
run: ls -la

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ debug.test
cosmos

local

coverage.out

test-report.out
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ build: sep ## Builds the library

test: sep ## Runs all unittests and generates a coverage report.
@echo "--> Run the unit-tests and checks for race conditions."
#@go test -timeout 30s -race -run "^Test.*[^IT]$$" -covermode=atomic
@go test -timeout 30s -race -run "^Test.*[^IT]$$" -covermode=atomic

test.report: sep ## Runs all unittests and generates a coverage- and a test-report.
@echo "--> Run the unit-tests"
@go test -timeout 30s -race -run "^Test.*[^IT]$$" -covermode=atomic -coverprofile=coverage.out -json | tee test-report.out

test.integration: sep ## Runs all integration tests. As precondition a local gremlin-server has to run and listen on port 8182.
@echo "--> Run the integration-tests"
@go test -timeout 30s -run "Test_SuiteIT" -covermode=count
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sonar.organization=supplyon
sonar.projectKey=supplyon_gremcos
sonar.projectName=gremcos

Expand Down

0 comments on commit af6d363

Please sign in to comment.