Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Mar 28, 2024
1 parent 3dcce66 commit 714ee30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
- name: Set up Go version
uses: actions/setup-go@v3
with:
go-version: '1.18.0'
go-version: '1.21.0'

- name: Go mod
run: go mod tidy

- name: Execute tests
run: go test -coverprofile=coverage.out -count=1 -race ./...
run: make test

- name: SonarQube Scan (Push)
if: github.event_name == 'push'
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
GO ?= go
COVERAGE_OUT = coverage.out

.PHONY: test test-norace

test:
$(GO) test ./... -count=1 -race
$(GO) test ./... -count=1 -race -coverprofile=$(COVERAGE_OUT)

test-norace:
$(GO) test ./... -count=1


0 comments on commit 714ee30

Please sign in to comment.