brew install fish in actions + don't hardcode the fish path

This commit is contained in:
David Dworken 2022-10-19 21:27:03 -07:00
parent 2ee050a629
commit 9d5eb73c76
2 changed files with 6 additions and 2 deletions

View File

@ -25,5 +25,5 @@ jobs:
run: |
sudo apt-get update || true
sudo apt-get install -y zsh fish || true
which go
brew install fish || true
make test

View File

@ -1580,7 +1580,11 @@ func TestFish(t *testing.T) {
installHishtory(t, tester, "")
// Test recording in fish
out := tester.RunInteractiveShell(t, ` export SHELL=/opt/homebrew/bin/fish
fishLocation, err := exec.LookPath("fish")
if err != nil {
t.Fatalf("fish is not installed")
}
out := tester.RunInteractiveShell(t, ` export SHELL=`+fishLocation+`
tmux kill-session -t foo || true
tmux -u new-session -d -x 200 -y 50 -s foo
tmux send -t foo ps -p $$ ENTER