Skip to content

Commit

Permalink
run all tests via ruby/setup-ruby and enable bundler caching
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and upadhyeammit committed Jun 30, 2022
1 parent 09a35da commit c38b928
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions .github/workflows/ruby_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,19 @@ name: Ruby Tests
on: pull_request

jobs:
Test_ruby_2_0_0:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install RVM
run: |
gpg --keyserver hkps://keys.openpgp.org --recv-keys 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
source $HOME/.rvm/scripts/rvm
rvm install 2.0.0
- name: Setup
run: |
source $HOME/.rvm/scripts/rvm
rvm use 2.0.0
gem install bundler -v '~> 1.3'
bundle install --jobs=3 --retry=3
- name: Run tests
run: |
source $HOME/.rvm/scripts/rvm
rvm use 2.0.0
bundle exec rake
Test_ruby:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.5.3', '2.7.4', '3.0.2']
ruby-version: ['2.0.0', '2.5.3', '2.7.4', '3.0.2']
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Setup
run: |
gem install bundler
bundle install --jobs=3 --retry=3
bundler-cache: true
- name: Run tests
run: |
bundle exec rake

0 comments on commit c38b928

Please sign in to comment.