Skip to content

Commit

Permalink
Github actions (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofurtado authored Jun 21, 2021
1 parent f7177c7 commit 0722e21
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/active_model_otp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Active Model OTP

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
gemfile: [rails_4.2, rails_5.0, rails_5.1, rails_5.2, rails_6.0, rails_6.1]
ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
exclude:
- { gemfile: rails_6.0, ruby-version: 2.3 }
- { gemfile: rails_6.1, ruby-version: 2.3 }
- { gemfile: rails_6.0, ruby-version: 2.4 }
- { gemfile: rails_6.1, ruby-version: 2.4 }
- { gemfile: rails_4.2, ruby-version: 2.7 }
- { gemfile: rails_4.2, ruby-version: 3.0 }
- { gemfile: rails_5.0, ruby-version: 3.0 }
- { gemfile: rails_5.1, ruby-version: 3.0 }
- { gemfile: rails_5.2, ruby-version: 3.0 }

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: bundle install

- name: Run tests with Ruby ${{ matrix.ruby-version }} and Gemfile ${{ matrix.gemfile }}
run: bundle exec rake
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

0 comments on commit 0722e21

Please sign in to comment.