-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.02 KB
/
ci.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
name: Ruby Gem CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-latest]
ruby: ['2.1.9', '2.2.10', '2.3.8' ]
include:
- ruby: '2.1.9'
rack_version: '1.6.13'
redis_rb_version: '3.3.5'
- ruby: '2.2.10'
rack_version: '2.1.4.3'
redis_rb_version: '4.1.1'
- ruby: '2.3.8'
rack_version: '2.2.8'
redis_rb_version: '4.4.0'
runs-on: ${{ matrix.os }}
steps:
- name: Start Redis
uses: supercharge/redis-github-action@1.7.0
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: rm -rf .git
- run: RACK_VERSION=${{ matrix.rack_version }} REDIS_RB_VERSION=${{ matrix.redis_rb_version }} make build
- run: RACK_VERSION=${{ matrix.rack_version }} REDIS_RB_VERSION=${{ matrix.redis_rb_version }} bundle exec rake