Skip to content

Commit

Permalink
ensure Codecov 0 exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Miller committed Dec 29, 2021
1 parent ca9f2ce commit 0c845d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codecov-coverage-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
# Run Tests and Coverage
- name: Run coverage
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
run: |
go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic || true
- name: Codecov
uses: codecov/codecov-action@v2
Expand Down
2 changes: 1 addition & 1 deletion vim/vim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestInstallVimAwesome(t *testing.T) {
packages *localio.InstalledPackages
}
if val, _ := os.LookupEnv("GITHUB_ACTIONS"); val == "true" {
if err = localio.RunCommandPipeOutput(fmt.Sprintf("rm -rf %s/.vim_runtime", dirs.HomeDir)); err != nil {
if err = localio.RunCommandPipeOutput(fmt.Sprintf("rm -rf %s/.vim_runtime 2>/dev/null || true", dirs.HomeDir)); err != nil {
t.Errorf("couldn't remove ~/.vim_runtime dir. error = %v", err)
}
}
Expand Down

0 comments on commit 0c845d8

Please sign in to comment.