Skip to content

Commit

Permalink
adding rspec workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Esity committed Jun 10, 2021
1 parent 042a454 commit b1ee076
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: RSpec
on: [push, pull_request]

jobs:
rspec:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [2.7]
runs-on: ${{ matrix.os }}
services:
redis:
image: redis
ports:
- 6379:6379

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: RSpec run
run: |
bash -c "
bundle exec rspec
[[ $? -ne 2 ]]
"
rspec-all:
needs: rspec
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
ruby: [2.5, 2.6, '3.0', head, truffleruby]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec

0 comments on commit b1ee076

Please sign in to comment.