forked from adamwiggins/yaml_db
-
Notifications
You must be signed in to change notification settings - Fork 199
114 lines (112 loc) · 2.99 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
105
106
107
108
109
110
111
112
113
114
---
name: CI
on:
- push
- pull_request
jobs:
spec:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby_version:
- "1.9.3"
- "2.0.0"
- "2.1"
- "2.2"
- "2.3"
rails_version:
- "3.0"
- "3.1"
- "3.2"
- "4.0"
- "4.1"
- "4.2"
include:
- ruby_version: "2.4"
rails_version: "4.2"
- ruby_version: "2.5"
rails_version: "4.2"
- ruby_version: "2.2"
rails_version: "5.0"
- ruby_version: "2.3"
rails_version: "5.0"
- ruby_version: "2.4"
rails_version: "5.0"
- ruby_version: "2.5"
rails_version: "5.0"
- ruby_version: "2.2"
rails_version: "5.1"
- ruby_version: "2.3"
rails_version: "5.1"
- ruby_version: "2.4"
rails_version: "5.1"
- ruby_version: "2.5"
rails_version: "5.1"
- ruby_version: "2.2"
rails_version: "5.2"
- ruby_version: "2.3"
rails_version: "5.2"
- ruby_version: "2.4"
rails_version: "5.2"
- ruby_version: "2.5"
rails_version: "5.2"
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler: 1
bundler-cache: true
cache-version: rails${{ matrix.rails_version }}
env:
RAILS_VERSION: "~> ${{ matrix.rails_version }}.0"
- run: gem update --no-rdoc --no-ri --system 2.7.11
if: ${{ matrix.ruby_version == '1.9.3' }}
- run: bundle exec rake
spec-ruby1_8_7:
runs-on: ubuntu-20.04
strategy:
# fail-fast: false
matrix:
rails_version:
- "3.0"
- "3.1"
- "3.2"
steps:
- uses: actions/checkout@v2
- uses: docker://silvioq/ruby-1.8.7
with:
entrypoint: /bin/bash
args: >
-x -c "gem install bundler -v '~> 1.17'
&& bundle install
&& bundle exec rake"
env:
RAILS_VERSION: "~> ${{ matrix.rails_version }}.0"
spec-ruby1_9_2:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
rails_version:
- "3.0"
- "3.1"
- "3.2"
steps:
- uses: actions/checkout@v2
- run: wget https://rubygems.org/rubygems/rubygems-2.7.11.tgz
- run: tar -xzf rubygems-2.7.11.tgz
- uses: docker://allenwei/ruby-1.9.2
with:
entrypoint: /bin/bash
args: >
-x -c "unset GEM_HOME
&& cd rubygems-2.7.11
&& ruby setup.rb --no-document --silent
&& cd ..
&& gem install --no-document bundler -v '~> 1.17'
&& bundle install
&& bundle exec rake"
env:
RAILS_VERSION: "~> ${{ matrix.rails_version }}.0"