File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
1
3
on :
2
4
push :
3
5
branches :
13
15
- " !docs/**"
14
16
- " !**.md"
15
17
16
- name : Test
17
18
jobs :
18
- Build :
19
+ unit :
19
20
strategy :
20
21
matrix :
21
22
go-version : [1.21.x, 1.22.x]
30
31
with :
31
32
go-version : ${{ matrix.go-version }}
32
33
33
- - name : Install gotestsum
34
- run :
go install gotest.tools/[email protected]
35
-
36
34
- name : Test
37
- run : gotestsum -f testname -- ./... -race -count=1 -coverprofile=coverage.txt -covermode=atomic -shuffle=on
35
+ run : go run gotest.tools/ gotestsum@latest -f testname -- ./... -race -count=1 -coverprofile=coverage.txt -covermode=atomic -shuffle=on
38
36
39
37
- name : Upload coverage reports to Codecov
40
38
if : ${{ matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.22.x' }}
44
42
file : ./coverage.txt
45
43
flags : unittests
46
44
slug : gofiber/fiber
45
+
46
+ repeated :
47
+ needs : unit
48
+ strategy :
49
+ matrix :
50
+ go-version : [1.21.x, 1.22.x]
51
+ runs-on : ubuntu-latest
52
+ steps :
53
+ - name : Fetch Repository
54
+ uses : actions/checkout@v4
55
+
56
+ - name : Install Go
57
+ uses : actions/setup-go@v5
58
+ with :
59
+ go-version : ${{ matrix.go-version }}
60
+
61
+ - name : Test
62
+ run : go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=15 -shuffle=on
Original file line number Diff line number Diff line change 40
40
# # longtest: 🚦 Execute all tests 10x
41
41
.PHONY : longtest
42
42
longtest :
43
- go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=10 -shuffle=on
43
+ go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=15 -shuffle=on
44
44
45
45
# # tidy: 📌 Clean and tidy dependencies
46
46
.PHONY : tidy
You can’t perform that action at this time.
0 commit comments