Skip to content

Commit

Permalink
Upgrade CI to ruby/setup-ruby (#1187)
Browse files Browse the repository at this point in the history
This replaces rvm in GitHub Actions.
  • Loading branch information
gogainda committed Oct 13, 2020
1 parent 85b46be commit 0461c4b
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/ci.yml
Expand Up @@ -19,9 +19,9 @@ jobs:
- uses: actions/checkout@v1

- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.x
ruby-version: 2.7

- name: Rubocop
run: |
Expand All @@ -45,30 +45,23 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}


- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- 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 }} --disable-binary
rvm --default use ${{ matrix.ruby }}
- name: Build
run: |
source $HOME/.rvm/scripts/rvm
sudo apt-get install libcurl4-openssl-dev
gem install bundler -v '<2'
bundle install --jobs 4 --retry 3
- name: Test
run: |
source $HOME/.rvm/scripts/rvm
bundle exec rake

0 comments on commit 0461c4b

Please sign in to comment.