File tree 3 files changed +19
-1
lines changed
3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : unit
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - run : make unit
13
+ - run : sed -i'' "s:^github.com/$GITHUB_REPOSITORY/::" coverage.out
14
+ - uses : codecov/codecov-action@v1
15
+ with :
16
+ file : coverage.out
17
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -461,3 +461,4 @@ pkg/apprclient/openapi/git_push.sh
461
461
! pkg /** /testdata /**
462
462
! test /** testdata /**
463
463
464
+ /coverage.out
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ static: build
42
42
43
43
.PHONY : unit
44
44
unit :
45
- $(GO ) test $(SPECIFIC_UNIT_TEST ) $(TAGS ) $(TEST_RACE ) -count=1 -v ./pkg/...
45
+ $(GO ) test -coverprofile=coverage.out $(SPECIFIC_UNIT_TEST ) $(TAGS ) $(TEST_RACE ) -count=1 -v ./pkg/...
46
46
47
47
.PHONY : sanity-check
48
48
sanity-check :
You can’t perform that action at this time.
0 commit comments