-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (42 loc) · 1.15 KB
/
ci.yml
File metadata and controls
47 lines (42 loc) · 1.15 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: build
on: [pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
build:
name: Ruby ${{ matrix.ruby }} with Rails ${{ matrix.rails }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
rails: ['5.0', '5.2', '6.0', '6.1', '7.0']
exclude:
- ruby: '3.1'
rails: '5.0'
- ruby: '3.1'
rails: '5.2'
- ruby: '3.0'
rails: '5.0'
- ruby: '3.0'
rails: '5.2'
- ruby: '2.5'
rails: '7.0'
- ruby: '2.6'
rails: '7.0'
env:
BUNDLE_GEMFILE: 'gemfiles/Gemfile.rails-${{ matrix.rails }}'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Lint & test
env:
STREAM_API_KEY: ${{ secrets.STREAM_API_KEY }}
STREAM_API_SECRET: ${{ secrets.STREAM_API_SECRET }}
run: |
bundle exec rake rubocop
bundle exec rake test