File tree Expand file tree Collapse file tree 3 files changed +34
-24
lines changed Expand file tree Collapse file tree 3 files changed +34
-24
lines changed Original file line number Diff line number Diff line change
1
+ name : Race Detection Tests
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ pull_request :
6
+ branches : [ main ]
7
+ jobs :
8
+ test :
9
+ name : Race Detector
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v3
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v4
16
+ with :
17
+ go-version : ' 1.21'
18
+ - name : Run race detector
19
+ run : |
20
+ go test -race -covermode=atomic ./...
Original file line number Diff line number Diff line change 1
1
name : Test and Coverage
2
-
3
2
on :
4
3
push :
5
4
branches : [ main ]
6
5
pull_request :
7
6
branches : [ main ]
8
-
9
7
jobs :
10
8
test :
11
9
name : Test and Coverage
12
10
runs-on : ubuntu-latest
13
-
14
11
steps :
15
- - name : Checkout code
16
- uses : actions/checkout@v3
17
-
18
- - name : Set up Go
19
- uses : actions/setup-go@v4
20
- with :
21
- go-version : ' 1.21'
22
-
23
- - name : Run tests with coverage
24
- run : |
25
- go test -race -coverprofile=coverage.out -covermode=atomic ./...
26
-
27
- - name : Upload coverage to Codecov
28
- uses : codecov/codecov-action@v3
29
- with :
30
- files : ./coverage.out
31
- flags : unittests
32
- name : codecov-umbrella
33
- fail_ci_if_error : false
34
- verbose : true
12
+ - name : Checkout code
13
+ uses : actions/checkout@v3
14
+ - name : Set up Go
15
+ uses : actions/setup-go@v4
16
+ with :
17
+ go-version : ' 1.21'
18
+ - name : Run tests with coverage
19
+ run : |
20
+ go test -coverprofile=coverage.txt
21
+ - name : Upload coverage reports to Codecov
22
+ uses : codecov/codecov-action@v5
23
+ with :
24
+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func ParseLineToMap(s string) map[string][]string {
28
28
for _ , item := range items {
29
29
key , values , err := parseKeyValue (item )
30
30
if err {
31
- fmt .Println ("Unable to parse line, discarded:" , item )
31
+ fmt .Println ("Settingo: Unable to parse line, discarded:" , item )
32
32
continue
33
33
}
34
34
parsed [key ] = values
You can’t perform that action at this time.
0 commit comments