Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade CI to ruby/setup-ruby #1187

Merged
merged 2 commits into from Oct 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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