-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Travis CI to GH Actions (#87)
- Loading branch information
1 parent
c2ca7eb
commit 29f2798
Showing
7 changed files
with
123 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: CI RSpec Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: >- | ||
${{ matrix.ruby }} | ||
env: | ||
CI: true | ||
TESTOPTS: -v | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.experimental }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [2.5, 2.6, 2.7, 3.0, jruby] # truffleruby | ||
mongoid: [7] | ||
experimental: [false] | ||
include: | ||
- ruby: 2.5 | ||
mongoid: 5 | ||
experimental: false | ||
- ruby: 2.6 | ||
mongoid: 6 | ||
experimental: false | ||
- ruby: 2.7 | ||
mongoid: 7.0 | ||
experimental: false | ||
- ruby: 2.7 | ||
mongoid: 7.1 | ||
experimental: false | ||
- ruby: 2.7 | ||
mongoid: 7.2 | ||
experimental: false | ||
- ruby: 2.7 | ||
mongoid: 7.3 | ||
experimental: false | ||
- ruby: head | ||
mongoid: 7 | ||
experimental: true | ||
- ruby: jruby-head | ||
mongoid: 7 | ||
experimental: true | ||
# - ruby: truffleruby-head | ||
# mongoid: 7 | ||
# experimental: true | ||
steps: | ||
- name: repo checkout | ||
uses: actions/checkout@v2 | ||
- name: start mongodb | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 4.4 | ||
mongodb-replica-set: rs0 | ||
- name: load ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler: 2 | ||
- name: bundle install | ||
run: bundle install --jobs 4 --retry 3 | ||
env: | ||
MONGOID_VERSION: ${{ matrix.mongoid }} | ||
- name: test | ||
timeout-minutes: 10 | ||
continue-on-error: ${{ matrix.experimental }} | ||
run: bundle exec rake spec | ||
env: | ||
MONGOID_VERSION: ${{ matrix.mongoid }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,46 @@ | ||
# DelayedJob Mongoid backend | ||
|
||
[](http://badge.fury.io/rb/delayed_job_mongoid) | ||
[](https://travis-ci.org/collectiveidea/delayed_job_mongoid) | ||
[](https://codeclimate.com/github/collectiveidea/delayed_job_mongoid) | ||
[](https://coveralls.io/github/collectiveidea/delayed_job_mongoid?branch=master) | ||
|
||
[gem]: https://rubygems.org/gems/delayed_job_mongoid | ||
[travis]: http://travis-ci.org/collectiveidea/delayed_job_mongoid | ||
[codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid | ||
[coveralls]: https://coveralls.io/r/collectiveidea/delayed_job_mongoid | ||
[![Gem Version][gem-img]][gem-url] | ||
[![Build Status][ghactions-img]][ghactions-url] | ||
[![Code Climate][codeclimate-img]][codeclimate-url] | ||
[![Coverage][coveralls-img]][coveralls-url] | ||
|
||
## Requirements | ||
|
||
Mongoid 5 or later. | ||
Delayed Job Mongoid supports the following dependency versions: | ||
|
||
- Ruby 2.3+ | ||
- Mongoid 5+ | ||
|
||
For Mongoid 3 and 4, use 2.x version of this gem. | ||
|
||
## Installation | ||
|
||
Add the gem to your Gemfile: | ||
|
||
gem 'delayed_job_mongoid' | ||
```ruby | ||
gem 'delayed_job_mongoid' | ||
``` | ||
|
||
Create the indexes (and don't forget to do this on your production database): | ||
Then create the indexes (don't forget to do this in production): | ||
|
||
script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes' | ||
``` | ||
script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes' | ||
``` | ||
|
||
To generate `script/delayed_job`: | ||
|
||
rails generate delayed_job | ||
``` | ||
rails generate delayed_job | ||
``` | ||
|
||
That's it. Use [delayed_job](http://github.com/collectiveidea/delayed_job) as normal. | ||
|
||
[gem-img]: https://badge.fury.io/rb/delayed_job_mongoid.svg | ||
[gem-url]: https://rubygems.org/gems/delayed_job_mongoid | ||
[ghactions-img]: https://github.com/collectiveidea/delayed_job_mongoid/actions/workflows/test.yml/badge.svg?query=branch%3Amaster | ||
[ghactions-url]: https://github.com/collectiveidea/delayed_job_mongoid/actions/workflows/test.yml?query=branch%3Amaster | ||
[codeclimate-img]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid.svg | ||
[codeclimate-url]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid | ||
[coveralls-img]: https://coveralls.io/github/collectiveidea/delayed_job_mongoid/badge.svg?branch=master | ||
[coveralls-url]: https://coveralls.io/github/collectiveidea/delayed_job_mongoid?branch=master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec| | |
spec.add_dependency 'delayed_job', ['>= 3.0', '< 5'] | ||
spec.add_dependency 'mongoid', '>= 5.0' | ||
spec.authors = ['Chris Gaffney', 'Brandon Keepers', 'Erik Michaels-Ober'] | ||
spec.email = ['[email protected]', '[email protected]', '[email protected]'] | ||
spec.email = %w[[email protected] [email protected] [email protected]] | ||
spec.files = %w[CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md delayed_job_mongoid.gemspec] + Dir['lib/**/*.rb'] | ||
spec.homepage = 'http://github.com/collectiveidea/delayed_job_mongoid' | ||
spec.licenses = ['MIT'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters