Skip to content

Commit 784595b

Browse files
committed
Add make
1 parent 12ca026 commit 784595b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/go.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
run: go mod download
2424

2525
- name: Test
26-
run: go test -coverprofile=coverage.txt ./...
26+
env:
27+
GOTESTSUM_JUNITFILE: junit.xml
28+
run: make
2729

2830
- name: Upload results to Codecov
2931
uses: codecov/codecov-action@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
coverage.txt
2+
junit.xml

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: test
2+
3+
all: clean test
4+
5+
test: clean
6+
@echo "Running tests..."
7+
@go run gotest.tools/gotestsum@v1.12.0 -- -coverprofile=coverage.txt ./...
8+
9+
clean:
10+
git clean -Xdf

0 commit comments

Comments
 (0)