Skip to content

Commit 1180a67

Browse files
committed
fix tests in pipeline
1 parent db82fd5 commit 1180a67

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run unit tests
2424
run: |
2525
make test
26-
go test -json ./... > test-report.json
26+
make test-json
2727
- name: SonarCloud Scan
2828
uses: SonarSource/sonarcloud-github-action@master
2929
env:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ test:
3737
go test -race -count=1 -v --coverprofile=coverage.txt ./...
3838
go tool cover -func coverage.txt | grep total
3939

40+
test-json:
41+
go test -json ./... > test-report.json
42+
4043
cov: test
4144
go tool cover -html=coverage.txt
4245

0 commit comments

Comments
 (0)