mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-02-08 15:08:30 +00:00
Update Dockerfile
This commit is contained in:
parent
6ee31d5dc5
commit
c1470a51b8
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -16,7 +16,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
@ -1,5 +1,5 @@
|
||||
FROM ubuntu:24.04
|
||||
RUN apt-get update -y && apt install -y git make golang zsh fish ruby tmux
|
||||
FROM rubylang/ruby:3.4.1-noble
|
||||
RUN apt-get update -y && apt install -y git make golang zsh fish tmux
|
||||
RUN gem install --no-document -v 5.22.3 minitest
|
||||
RUN echo '. /usr/share/bash-completion/completions/git' >> ~/.bashrc
|
||||
RUN echo '. ~/.bashrc' >> ~/.bash_profile
|
||||
@ -9,4 +9,4 @@ RUN rm -f /etc/bash.bashrc
|
||||
COPY . /fzf
|
||||
RUN cd /fzf && make install && ./install --all
|
||||
ENV LANG=C.UTF-8
|
||||
CMD ["bash", "-ic", "tmux new 'set -o pipefail; ruby /fzf/test/test_go.rb | tee out && touch ok' && cat out && [ -e ok ]"]
|
||||
CMD ["bash", "-ic", "tmux new 'set -o pipefail; ruby /fzf/test/runner.rb | tee out && touch ok' && cat out && [ -e ok ]"]
|
||||
|
@ -1652,4 +1652,17 @@ class TestCore < TestInteractive
|
||||
assert_equal expected, to_vars(lines).slice(*expected.keys)
|
||||
end
|
||||
end
|
||||
|
||||
def test_abort_action_chain
|
||||
tmux.send_keys %(seq 100 | #{FZF} --bind 'load:accept+up+up' > #{tempname}), :Enter
|
||||
wait do
|
||||
assert_path_exists tempname
|
||||
assert_equal '1', File.read(tempname).chomp
|
||||
end
|
||||
tmux.send_keys %(seq 100 | #{FZF} --bind 'load:abort+become(echo {})' > #{tempname}), :Enter
|
||||
wait do
|
||||
assert_path_exists tempname
|
||||
assert_equal '', File.read(tempname).chomp
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -299,9 +299,4 @@ class TestFilter < TestBase
|
||||
assert_equal expected, result
|
||||
end
|
||||
end
|
||||
|
||||
def test_abort_action_chain
|
||||
assert_equal '1', `seq 100 | #{FZF} --bind 'load:accept+up+up'`.chomp
|
||||
assert_equal '', `seq 100 | #{FZF} --bind 'load:abort+become(echo {})'`.chomp
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user