Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run IRB test in workflow #534

Merged
merged 4 commits into from
Apr 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/reline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,52 @@ jobs:
TERM: xterm-256color
run: bundle exec rake ci-test

irb:
name: >-
irb ${{ matrix.ruby }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
ruby: [ 'head', '3.2' ]
os: [ ubuntu-latest ]
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install libvterm
run: |
sudo apt install -y libtool-bin
wget http://www.leonerd.org.uk/code/libvterm/libvterm-0.1.4.tar.gz
tar xvzf libvterm-0.1.4.tar.gz
cd libvterm-0.1.4
sed -i -e 's/^PREFIX=.*$/PREFIX=\/usr/g' Makefile
make
sudo make install
- name: Install dependencies
run: bundle install
- name: Install reline
run: |
rake build
rake install
- name: Download ruby/irb
run: |
git clone https://github.com/ruby/irb
- name: Run irb test
working-directory: ./irb
run: |
bundle install
bundle exec rake test
- name: Run irb yamatanooroti test
working-directory: ./irb
env:
WITH_VTERM: 1
run: |
bundle install
bundle exec rake test_yamatanooroti

vterm-yamatanooroti:
name: >-
vterm-yamatanooroti ${{ matrix.os }} ${{ matrix.ruby }}
Expand Down