-
-
Notifications
You must be signed in to change notification settings - Fork 325
53 lines (50 loc) · 2.03 KB
/
test-ruby.yml
File metadata and controls
53 lines (50 loc) · 2.03 KB
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
name: build
permissions: {}
on:
push:
branches:
- main
- renovate/**
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Latest ruby will only be tested on
# - all rails versions in current major & latest minor rails version of the previous major
#
# Any unsupported ruby will only be tested on
# - rails versions if their patch release is within 6 months of the Ruby EOL date
# - No version of the current rails major
#
# 3.2 -> EOL Mar '26 -> Only test Rails versions initially released before Sep '26
include:
- { ruby: '3.4', gemfile: 'rails_7_2' }
- { ruby: '3.4', gemfile: 'rails_8_0' }
# Supported rubies will test all permissible supported rails versions
ruby: ['3.2', '3.3']
gemfile: ['rails_6_1', 'rails_7_0', 'rails_7_1', 'rails_7_2', 'rails_8_0']
exclude:
# Ruby 3.1+ has issues with Rails 6.1 https://github.com/rails/rails/issues/46883#issuecomment-1371325906
# It (Rails 6.1.x), has been marked as a won't fix and as such it's likely this will need to just be excluded until out of support window
# Ruby 3.1+ has a conflicting Psych version with Rails 6.x: https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias
# Rails 8.x has a minimum ruby of 3.2
- { ruby: '3.2', gemfile: 'rails_6_1' }
- { ruby: '3.3', gemfile: 'rails_6_1' }
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ruby/setup-ruby@c515ec17f69368147deb311832da000dd229d338 # v1.297.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake spec
- run: bundle exec rubocop
- run: bundle exec rake cucumber