File tree 1 file changed +17
-8
lines changed
1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,23 @@ jobs:
35
35
- name : Checkout Git Repository
36
36
uses : actions/checkout@v3
37
37
38
- - name : Unit Tests with Code Coverage
38
+ - name : Run Go Tests
39
+ run : make test
40
+
41
+ - name : Check format
39
42
run : |
40
- make test
43
+ if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then
44
+ echo "not well formatted sources are found"
45
+ exit 1
46
+ fi
41
47
42
- - name : Upload Code Coverage Report
43
- uses : codecov/codecov-action@v3
48
+ - name : Generate coverage report
49
+ run : |
50
+ go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
51
+
52
+ - name : Upload coverage report
53
+ uses : codecov/codecov-action@v1
44
54
with :
45
- token : ${{ secrets.CODECOV_TOKEN }}
46
- file : cover.out
47
- verbose : true
48
- fail_ci_if_error : true
55
+ file : ./coverage.txt
56
+ flags : unittests
57
+ name : codecov-umbrella
You can’t perform that action at this time.
0 commit comments