Skip to content

Commit

Permalink
Run tests with Ruby 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kzkn committed Feb 6, 2021
1 parent 89490a1 commit 6751cb0
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
name: CI

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rails_version: [5.1.0, 5.2.0, 6.0.0, 6.1.0, master]
ruby_version: [3.0.x, 2.7.x, 2.6.x, 2.5.x]
ruby_version: [3.0, 2.7, 2.6, 2.5]
exclude:
- ruby_version: 3.0.x
- ruby_version: 2.5
rails_version: master
- ruby_version: 2.6
rails_version: master
- ruby_version: 3.0
rails_version: 5.1.0
- ruby_version: 3.0
rails_version: 5.2.0

steps:
- uses: actions/checkout@v2

- name: Setup Ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Run test
env:
RAILS_VERSION: ${{ matrix.rails_version }}
run: |
gem install bundler
bundle update
cd spec/dummy; rake db:migrate db:test:prepare; cd ../..
bundle exec rake
Expand Down

0 comments on commit 6751cb0

Please sign in to comment.