Skip to content

Commit

Permalink
Merge pull request #51 from nerixim/setup-ruby-matrix-testing
Browse files Browse the repository at this point in the history
Setup ruby matrix testing
  • Loading branch information
nerixim authored Dec 22, 2020
2 parents 1a1dbb1 + f53f3cc commit 353b1cf
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ on:
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby: ['2.4', '2.5', '2.6', '2.7']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: gem install bundler && bundle install
- name: Run rubocop
run: bundle exec rubocop
- name: Run tests
run: bundle exec rake

0 comments on commit 353b1cf

Please sign in to comment.