Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
18 changes: 8 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true

- name: Get dependencies
run: go mod download

- name: Run tests
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage results
uses: actions/upload-artifact@v7
run: go test -race -shuffle=on -coverprofile=coverage.out -covermode=atomic $(go list ./... | grep -v -E '/pkg/proto/|/cmd')

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
name: coverage-results
path: coverage.out
retention-days: 1
overwrite: true
files: coverage.out
fail_ci_if_error: false
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ clean:

# Test target for CI
test:
$(env) go test -race -coverprofile=coverage.out -covermode=atomic ./...
$(env) go test -race -shuffle=on -coverprofile=coverage.out -covermode=atomic $$(go list ./... | grep -v -E '/pkg/proto/|/cmd')

# Lint target for CI
lint:
Expand All @@ -60,4 +60,4 @@ tidy:

# Install git hooks
hooks:
@bash .githooks/install.sh
@bash .githooks/install.sh
Loading