Skip to content

Commit

Permalink
(maint) Removing coverage reporting
Browse files Browse the repository at this point in the history
This wont work for PRs raised from a fork.
See for more details: actions/labeler#50
  • Loading branch information
da-ar committed Jun 2, 2021
1 parent e41057b commit b675789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,4 @@ jobs:
run: go build -v

- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out ./...

- name: Convert go coverage report to lcov format
uses: jandelgado/gcov2lcov-action@v1.0.0
with:
infile: coverage.out
outfile: coverage.lcov

- name: Report coverage
uses: vebr/jest-lcov-reporter@v0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./coverage.lcov
run: go test -v ./...
2 changes: 1 addition & 1 deletion acceptance/testutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func SkipAcceptanceTest(t *testing.T) {
// if wd is and empty string it will default to the current working directory
func RunCommand(cmdString string, wd string) (stdout string, stderr string, exitCode int) {
cmds := strings.Split(cmdString, " ")
cmd := exec.Command(cmds[0], cmds[1:]...)
cmd := exec.Command(cmds[0], cmds[1:]...) //#nosec, nolint:gosec //code only used for testing
if wd != "" {
cmd.Dir = wd
}
Expand Down

0 comments on commit b675789

Please sign in to comment.