Skip to content

Commit b7fab01

Browse files
authored
Add action (#102)
1 parent 4b434da commit b7fab01

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby: [ '2.5', '2.6' ]
11+
rails: [ '5.0', '5.2' ]
12+
name: Ruby ${{ matrix.ruby }} with Rails ${{ matrix.rails }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-ruby@v1
16+
with:
17+
ruby-version: ${{ matrix.ruby }}
18+
19+
- env:
20+
STREAM_API_KEY: ${{ secrets.STREAM_API_KEY }}
21+
STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }}
22+
BUNDLE_GEMFILE: 'gemfiles/Gemfile.rails-${{ matrix.rails }}'
23+
run: |
24+
gem install bundler
25+
bundle install --jobs 4 --retry 3
26+
# bundle exec rake rubocop
27+
bundle exec rake test

0 commit comments

Comments
 (0)