-
Notifications
You must be signed in to change notification settings - Fork 146
93 lines (84 loc) · 2.17 KB
/
ruby.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
name: Ruby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
gemfile:
- binding_of_caller.gemfile
- delayed_job.gemfile
- hanami.gemfile
- rack.gemfile
- rack_1.gemfile
- rails5.2.gemfile
- rails6.0.gemfile
- rails6.1.gemfile
- rails7.0.gemfile
- resque.gemfile
- sinatra.gemfile
- sinatra_1.gemfile
- sidekiq.gemfile
- sidekiq7.gemfile
- standalone.gemfile
exclude:
- gemfile: hanami.gemfile
ruby: '2.7'
- gemfile: rails5.2.gemfile
ruby: '3.0'
- gemfile: rails5.2.gemfile
ruby: '3.1'
- gemfile: rails5.2.gemfile
ruby: '3.2'
# Has to be top level to cache properly
env:
BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}"
BUNDLE_JOBS: 4
BUNDLE_PATH: "vendor/bundle"
BUNDLE_WITHOUT: "development"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test regular ruby
run: |
bundle exec rake
jruby:
runs-on: ubuntu-20.04 # ubuntu-latest is currently 22.04, which doesn't have a supported JRuby 9 build yet
strategy:
matrix:
ruby:
- 'jruby-9.2.14.0'
gemfile:
- rails6.0.gemfile
- rails6.1.gemfile
# TODO
# - rails7.0.gemfile
# Has to be top level to cache properly
env:
BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}"
BUNDLE_JOBS: 4
BUNDLE_PATH: "vendor/bundle"
BUNDLE_WITHOUT: "development"
steps:
- uses: actions/checkout@v4
- name: Set up JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build and test jruby
run: |
bundle exec rake spec:integrations spec:units