Skip to content

Commit

Permalink
Merge pull request #53 from osyo-manga/test-irb-in-CI
Browse files Browse the repository at this point in the history
Add irb test in CI.
  • Loading branch information
aycabta authored Sep 3, 2019
2 parents 3538bd0 + a0111c0 commit eaa959a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ubuntu-rvm-with-irb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ubuntu-rvm with irb

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ 'ruby-head' ]
steps:
- uses: actions/checkout@master
- name: Set up RVM
run: |
curl -sSL https://get.rvm.io | bash
- name: Set up Ruby
run: |
source $HOME/.rvm/scripts/rvm
rvm install ${{ matrix.ruby }} --binary
rvm --default use ${{ matrix.ruby }}
- name: Install dependencies
run: |
source $HOME/.rvm/scripts/rvm
gem install bundler --no-document
bundle install
- name: Install reline
run: |
source $HOME/.rvm/scripts/rvm
rake build
rake install
- name: Download ruby/irb
run: |
git clone https://github.com/ruby/irb
- name: Setup ruby/irb
run: |
cd irb
source $HOME/.rvm/scripts/rvm
bundle install
- name: Run irb test
run: |
source $HOME/.rvm/scripts/rvm
bundle exec rake test

0 comments on commit eaa959a

Please sign in to comment.