Skip to content

Commit

Permalink
Switch to gh actions (#1357)
Browse files Browse the repository at this point in the history
Switch to gh actions for CI tests
  • Loading branch information
lgebhardt authored Feb 4, 2021
1 parent 20e051c commit a8f9cf9
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 32 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

on:
push:
branches: [ 'master', 'release-0-8', 'release-0-9', 'release-0-10' ]
pull_request:
branches: ['**']

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.6.6
- 2.7.2
rails:
- 6.1.1
- 6.0.3.4
- 5.2.4.4
- 5.1.7
- 5.0.7.2
- 4.2.11
exclude:
- ruby: 2.7.2
rails: 5.0.7.2
- ruby: 2.7.2
rails: 4.2.11
- ruby: 2.6.6
rails: 4.2.11
env:
RAILS_VERSION: ${{ matrix.rails }}
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake test
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion jsonapi-resources.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.1'

spec.add_development_dependency 'bundler', '~> 1.17.3'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'minitest-spec-rails'
Expand Down

0 comments on commit a8f9cf9

Please sign in to comment.