diff --git a/.github/workflows/ubuntu-rvm-with-irb.yml b/.github/workflows/ubuntu-rvm-with-irb.yml new file mode 100644 index 0000000000..074ee2c8a0 --- /dev/null +++ b/.github/workflows/ubuntu-rvm-with-irb.yml @@ -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