Skip to content

Commit

Permalink
Merge pull request #649 from cjlarose/github-actions
Browse files Browse the repository at this point in the history
Run specs with Github Actions
  • Loading branch information
cjlarose authored Feb 1, 2021
2 parents d960fbb + 2c66f2a commit 9f39747
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Specs

on: push

jobs:
all_specs:
name: All Specs
strategy:
matrix:
ruby: ['2.4.4', '2.5.1', '2.6.3']
gemfile: ['Gemfile', 'Gemfile.aws-sdk-core-v2']
runs-on: ubuntu-20.04
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run specs
env:
SPEC_ALL: true
run: bundle exec rake spec
rails_specs:
name: Rails Specs
strategy:
matrix:
rails: ['4.2', '5.2', '6.0', '6.1']
include:
- rails: '4.2'
ruby: '2.2'
gemfile: gemfiles/rails_4_2.gemfile
- rails: '5.2'
ruby: '2.5'
gemfile: gemfiles/rails_5_2.gemfile
- rails: '6.0'
ruby: '2.6'
gemfile: gemfiles/rails_6_0.gemfile
- rails: '6.1'
ruby: '3.0'
gemfile: gemfiles/rails_6_1.gemfile
runs-on: ubuntu-20.04
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Rails specs
run: bundle exec rake rails_specs
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Shoryuken _sho-ryu-ken_ is a super-efficient [Amazon SQS](https://aws.amazon.com/sqs/) thread-based message processor.

[![Build Status](https://github.com/ruby-shoryuken/shoryuken/workflows/Specs/badge.svg)](https://github.com/ruby-shoryuken/shoryuken/actions)
[![Build Status](https://travis-ci.org/phstc/shoryuken.svg)](https://travis-ci.org/phstc/shoryuken)
[![Code Climate](https://codeclimate.com/github/phstc/shoryuken/badges/gpa.svg)](https://codeclimate.com/github/phstc/shoryuken)

Expand Down

0 comments on commit 9f39747

Please sign in to comment.