Skip to content

Commit

Permalink
Run IRB test in workflow (#534)
Browse files Browse the repository at this point in the history
* Revert removing irb-test from workflow

* Run IRB's test in 'Run irb test'. It was running Reline's test

* Use env section for ENV WITH_VTERM=1

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Run IRB test in head and 3.2

---------

Co-authored-by: Stan Lo <stan001212@gmail.com>
  • Loading branch information
tompng and st0012 authored Apr 14, 2023
1 parent 127a84d commit c6bc257
Showing 1 changed file with 46 additions and 0 deletions.
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

0 comments on commit c6bc257

Please sign in to comment.