-
Notifications
You must be signed in to change notification settings - Fork 280
104 lines (94 loc) · 3.21 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Rollbar-gem CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
ruby-version: [2.5.3, 2.6.0, 2.6.6, 2.7.2]
gemfile:
- gemfiles/rails50.gemfile
- gemfiles/rails51.gemfile
- gemfiles/rails52.gemfile
- gemfiles/rails60.gemfile
- gemfiles/rails61.gemfile
include:
- gemfile: gemfiles/rails70.gemfile
ruby-version: 3.1.1
- gemfile: gemfiles/rails70.gemfile
ruby-version: 3.0.3
- gemfile: gemfiles/rails61.gemfile
ruby-version: 3.0.3
- gemfile: gemfiles/rails42.gemfile
ruby-version: 2.4.5
- gemfile: gemfiles/rails42.gemfile
ruby-version: 2.3.8
- gemfile: gemfiles/rails42.gemfile
ruby-version: 2.2.10
- gemfile: gemfiles/rails41.gemfile
ruby-version: 2.3.0
- gemfile: gemfiles/rails41.gemfile
ruby-version: 2.2.10
- gemfile: gemfiles/rails41.gemfile
ruby-version: 2.1.9
- gemfile: gemfiles/rails40.gemfile
ruby-version: 2.3.0
- gemfile: gemfiles/rails40.gemfile
ruby-version: 2.2.10
- gemfile: gemfiles/rails40.gemfile
ruby-version: 2.1.9
- gemfile: gemfiles/rails32.gemfile
ruby-version: 2.2.10
- gemfile: gemfiles/rails32.gemfile
ruby-version: 2.1.9
- gemfile: gemfiles/rails31.gemfile
ruby-version: 2.0.0
- gemfile: gemfiles/rails30.gemfile
ruby-version: 2.0.0
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 4
- name: Setup Ruby > 2.0
uses: ruby/setup-ruby@v1
if: ${{ matrix.ruby-version != '2.0.0' }}
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Setup Ruby 2.0.0
if: ${{ matrix.ruby-version == '2.0.0' }}
timeout-minutes: 15
run: |
sudo apt-get update -y
sudo apt-get install -y libssl1.0-dev
wget http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p648.tar.gz
tar xvfz ruby-2.0.0-p648.tar.gz
cd ruby-2.0.0-p648
./configure && make && sudo make install-nodoc
- name: Ruby 2.0.0, install bundler
if: ${{ matrix.ruby-version == '2.0.0' }}
run: sudo gem install bundler -v 1.17.3
- name: Rails 4.2 ensure bundler version
if: ${{ matrix.gemfile == 'gemfiles/rails42.gemfile' }}
run: |
gem uninstall bundler
gem install bundler -v '< 2.0.0'
- name: Bundle Install
run: |
export BUNDLE_GEMFILE=${{ matrix.gemfile }}
bundle config path vendor/bundle
bundle config gemfile ${{ matrix.gemfile }}
bundle install --jobs 4 --retry 3
- name: Rspec
run: |
export BUNDLE_GEMFILE=${{ matrix.gemfile }}
bundle config path vendor/bundle
bundle config gemfile ${{ matrix.gemfile }}
bundle exec rspec