Skip to content

Commit 0a67151

Browse files
authored
fix(ci): match test setup with go-vela/server (#364)
1 parent 2f60eb9 commit 0a67151

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ jobs:
2929
cache: true
3030
check-latest: true
3131

32-
- name: install
33-
run: |
34-
go get github.com/mattn/goveralls
35-
3632
- name: test
3733
run: |
38-
go test -race -covermode=atomic -coverprofile=coverage.out ./...
34+
make test
3935
4036
- name: coverage
4137
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3

Makefile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,15 @@ fix:
5555
test:
5656
@echo
5757
@echo "### Testing Go Code"
58-
@go test -race ./...
58+
@go test -race -covermode=atomic -coverprofile=coverage.out ./...
5959

6060
# The `test-cover` target is intended to run
6161
# the tests for the Go source code and then
6262
# open the test coverage report.
6363
#
6464
# Usage: `make test-cover`
6565
.PHONY: test-cover
66-
test-cover:
67-
@echo
68-
@echo "### Creating test coverage report"
69-
@go test -race -covermode=atomic -coverprofile=coverage.out ./...
66+
test-cover: test
7067
@echo
7168
@echo "### Opening test coverage report"
7269
@go tool cover -html=coverage.out

0 commit comments

Comments
 (0)