diff --git a/.github/workflows/codecov-coverage-reporter.yml b/.github/workflows/codecov-coverage-reporter.yml index a3eac7d..2f8ea8b 100644 --- a/.github/workflows/codecov-coverage-reporter.yml +++ b/.github/workflows/codecov-coverage-reporter.yml @@ -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 diff --git a/vim/vim_test.go b/vim/vim_test.go index 5a1b747..01a1d4e 100644 --- a/vim/vim_test.go +++ b/vim/vim_test.go @@ -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) } }