Skip to content
Myr

Migrate to GitHub Actions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent c611573 · Browse files · 5 files+96 added−37 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+96 added−37 removed

  • tests:+5 added−4 removed
  • other:+91 added−33 removed

5 files+96 added−37 removed

added:.github/workflows/linux.yml+47 added
added:.github/workflows/macos.yml+44 added
modified:src/history_test.go-5 removed
1 unmodified line
23import (4 "io/ioutil"5 "os"6 "os/user"6 "runtime"7 "testing"8)910func TestHistory(t *testing.T) {11 maxHistory := 501213 // Invalid arguments15 user, _ := user.Current()14 var paths []string15 if runtime.GOOS == "windows" {16 // GOPATH should exist, so we shouldn't be able to override it17 paths = []string{os.Getenv("GOPATH")}18 } else {19 paths = []string{"/etc", "/proc"}22 if user.Name != "root" {23 paths = append(paths, "/etc/sudoers")24 }20 }2122 for _, path := range paths {23 if _, e := NewHistory(path, maxHistory); e == nil {
45 unmodified lines
modified:test/test_go.rb+5 added-4 removed
146 unmodified lines
147148 def prepare149 tries = 0150 begin151 self.until do |lines|152 send_keys ' ', 'C-u', :Enter, 'hello', :Left, :Right153 lines[-1] == 'hello'151 self.until(true) do |lines|152 message = "Prepare[#{tries}]"153 send_keys ' ', 'C-u', :Enter, message, :Left, :Right154 lines[-1] == message155 end156 rescue Minitest::Assertion157 (tries += 1) < 5 ? retry : raise158 end158 send_keys 'C-u'159 send_keys 'C-u', 'C-l'160 end161162 private163
2185 unmodified lines
deleted:.travis.yml-28 removed