-
Notifications
You must be signed in to change notification settings - Fork 24
50 lines (41 loc) · 1.1 KB
/
build.yml
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
48
49
50
name: build
on:
push:
branches: [$default-branch]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: "Redis ${{ matrix.redis-version }}, Ruby ${{ matrix.ruby-version }}, RSpec ${{ matrix.rspec-core-version }}"
strategy:
matrix:
redis-version: [5]
ruby-version:
- 2.5
rspec-core-version:
- 3.8.2
- 3.9.3
- 3.10.1
- 3.11.0
include:
- redis-version: 5
ruby-version: 3.1
rspec-core-version: 3.11.0
- redis-version: 5
ruby-version: '3.0' # Quoted in order to stringify to '3.0', not '3'.
rspec-core-version: 3.11.0
services:
redis:
image: "redis:${{ matrix.redis-version }}"
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
env:
RSPEC_CORE: ${{ matrix.rspec-core-version }}
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- run: bundle exec rubocop
- run: bundle exec rake