mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-22 22:28:51 +01:00
brew install fish in actions + don't hardcode the fish path
This commit is contained in:
parent
2ee050a629
commit
9d5eb73c76
2
.github/workflows/go-test.yml
vendored
2
.github/workflows/go-test.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user