Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ jobs:
# Override test repetition parallelism, since the default runner seem to have a single core.
# This shaves ~30 seconds off the CI test duration.
F3_TEST_REPETITION_PARALLELISM: 2
run: make test
run: make test/cover
- name: Upload coverage to Codecov
# Commit SHA corresponds to version v4.4.0
# See: https://github.com/codecov/codecov-action/releases/tag/v4.4.0
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17
with:
files: coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

generate:
name: Generate
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# IDE project files
.idea/

# Test coverage output; see `test` target in Makefile.
coverage.txt
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ all: generate test lint

test: GOGC ?= 1000 # Reduce the GC frequency, default to 1000 if unset.
test:
GOGC=$(GOGC) go test ./...
GOGC=$(GOGC) go test $(GOTEST_ARGS) ./...
.PHONY: test

test/cover: test
test/cover: GOTEST_ARGS=-coverprofile=coverage.txt -covermode=atomic
.PHONY: test/cover


lint:
golangci-lint run ./...
.PHONY: lint
Expand Down