Move from travis to GitHub Actions

This commit is contained in:
Carlos Antonio da Silva 2021-01-19 22:20:33 -03:00
parent 4f829d6966
commit f0b412301b
3 changed files with 36 additions and 29 deletions

36
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
gemfile:
- Gemfile
- gemfiles/Gemfile.rails-5-0-stable
- gemfiles/Gemfile.rails-5-1-stable
- gemfiles/Gemfile.rails-5-2-stable
ruby:
- 2.4
- 2.5
- 2.6
- 2.7
exclude:
- ruby: 2.4
gemfile: Gemfile
- ruby: 2.7
gemfile: gemfiles/Gemfile.rails-5-0-stable
- ruby: 2.7
gemfile: gemfiles/Gemfile.rails-5-1-stable
- ruby: 2.7
gemfile: gemfiles/Gemfile.rails-5-2-stable
runs-on: ubuntu-latest
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs bundle install and caches installed gems automatically
- run: bundle exec rake

View File

@ -1,27 +0,0 @@
cache: bundler
language: ruby
rvm:
- 2.4
- 2.5
- 2.6
- 2.7
gemfile:
- gemfiles/Gemfile.rails-5-0-stable
- gemfiles/Gemfile.rails-5-1-stable
- gemfiles/Gemfile.rails-5-2-stable
- Gemfile
matrix:
exclude:
- rvm: 2.4
gemfile: Gemfile
- rvm: 2.7
gemfile: gemfiles/Gemfile.rails-5-0-stable
- rvm: 2.7
gemfile: gemfiles/Gemfile.rails-5-1-stable
- rvm: 2.7
gemfile: gemfiles/Gemfile.rails-5-2-stable
before_install:
- gem update --system
notifications:
email: true
script: "bin/test"

View File

@ -1233,7 +1233,6 @@ If you have discovered a security related bug, please do NOT use the GitHub issu
* Felipe Renan (https://github.com/feliperenan)
[![Gem Version](https://fury-badge.herokuapp.com/rb/simple_form.png)](http://badge.fury.io/rb/simple_form)
[![Build Status](https://api.travis-ci.org/heartcombo/simple_form.svg?branch=master)](http://travis-ci.org/heartcombo/simple_form)
[![Code Climate](https://codeclimate.com/github/heartcombo/simple_form.png)](https://codeclimate.com/github/heartcombo/simple_form)
[![Inline docs](http://inch-ci.org/github/heartcombo/simple_form.png)](http://inch-ci.org/github/heartcombo/simple_form)
@ -1242,4 +1241,3 @@ If you have discovered a security related bug, please do NOT use the GitHub issu
MIT License. Copyright 2020 Rafael França, Carlos Antônio da Silva. Copyright 2009-2019 Plataformatec.
The Simple Form logo is licensed under [Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License](https://creativecommons.org/licenses/by-nc-nd/4.0/).