-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (26 loc) · 802 Bytes
/
ci.yml
File metadata and controls
32 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: test
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
ruby: ["3.0", "3.1", "3.4"]
name: 💎 Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # gives the commit linter access to previous commits
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake rubocop
if: ${{ matrix.ruby == '3.4' }}
- run: bundle exec srb tc
if: ${{ matrix.ruby == '3.4' }}
- run: bundle exec rspec ./spec --require spec_helper
env:
STREAM_KEY: ${{ secrets.STREAM_CHAT_API_KEY }}
STREAM_SECRET: ${{ secrets.STREAM_CHAT_API_SECRET }}