This repository was archived by the owner on Oct 31, 2021. It is now read-only.
File tree 5 files changed +24
-3
lines changed
5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 62
62
run : make apply-schema-ci
63
63
- name : Test
64
64
run : make test
65
+ - name : Publish Test Report
66
+ uses : mikepenz/action-junit-report@v2
67
+ if : always() # always run even if the previous step fails
68
+ with :
69
+ report_paths : ' /rest-api.xml'
70
+ check_name : ' Go Test Summary'
65
71
66
72
pg-test :
67
73
needs :
Original file line number Diff line number Diff line change 46
46
run : make apply-schema-ci
47
47
- name : Test
48
48
run : make test
49
+ - name : Publish Test Report
50
+ uses : mikepenz/action-junit-report@v2
51
+ if : always() # always run even if the previous step fails
52
+ with :
53
+ report_paths : ' /rest-api.xml'
54
+ check_name : ' Go Test Summary'
49
55
pg-test :
50
56
name : PostgreSQL Test
51
57
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 38
38
run : make apply-schema-ci
39
39
- name : Test
40
40
run : make test
41
+ - name : Publish Test Report
42
+ uses : mikepenz/action-junit-report@v2
43
+ if : always() # always run even if the previous step fails
44
+ with :
45
+ report_paths : ' /rest-api.xml'
46
+ check_name : ' Go Test Summary'
41
47
pg-test :
42
48
timeout-minutes : 10
43
49
name : PostgreSQL Test
Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ test: $(GO) dependencies $(ALL_GO_FILES) $(GOTESTSUM)
75
75
ifndef CI
76
76
$(GO) run $(MONETR_CLI_PACKAGE) database migrate -d $(POSTGRES_DB) -U $(POSTGRES_USER) -H $(POSTGRES_HOST)
77
77
endif
78
- $(GOTESTSUM) --junitfile $(PWD)/rest-api.xml -- -race -v -coverprofile=$(COVERAGE_TXT) -covermode=atomic $(GO_SRC_DIR)/...
78
+ $(GOTESTSUM) --junitfile $(PWD)/rest-api.xml --format testname -- -race -v \
79
+ -coverprofile=$(COVERAGE_TXT) \
80
+ -covermode=atomic $(GO_SRC_DIR)/...
79
81
$(GO) tool cover -func=$(COVERAGE_TXT)
80
82
81
83
clean :
Original file line number Diff line number Diff line change 1
1
package controller_test
2
2
3
3
import (
4
+ "net/http"
5
+ "testing"
6
+
4
7
"github.com/brianvoe/gofakeit/v6"
5
8
"github.com/jarcoal/httpmock"
6
9
"github.com/monetr/rest-api/pkg/internal/mock_stripe"
7
10
"github.com/monetr/rest-api/pkg/swag"
8
- "net/http"
9
- "testing"
10
11
)
11
12
12
13
func TestLogin (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments