diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3e82df..ac9959a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' diff --git a/Makefile b/Makefile index 2b35782..b706847 100644 --- a/Makefile +++ b/Makefile @@ -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 -