Skip to content

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mishina2228 authored and glebm committed Oct 23, 2022
1 parent 7d46ee7 commit 2028026
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:

jobs:
test:
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby_version: ['2.5', '2.6', '2.7']
gemfile:
- test/gemfiles/rails_5_0.gemfile
- test/gemfiles/rails_5_1.gemfile
- test/gemfiles/rails_6_0.gemfile
- test/gemfiles/rails_6_1.gemfile
include:
- ruby_version: '2.5'
gemfile: test/gemfiles/rails_4_2.gemfile
- ruby_version: '2.6'
gemfile: test/gemfiles/rails_4_2.gemfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true # 'bundle install' and cache
- name: Build and test with Rake
run: bundle exec rake --trace

0 comments on commit 2028026

Please sign in to comment.