-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from osyo-manga/test-irb-in-CI
Add irb test in CI.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |