-
Notifications
You must be signed in to change notification settings - Fork 89
81 lines (77 loc) · 2.37 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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
ruby-version: [2.3.0, 2.4.4, 2.5.5, 2.6.3]
appraisal: ["3.2", "4.0", "4.1", "4.2", "5.0", "5.1", "5.2", "6.0"]
include:
- ruby-version: 2.7.5
appraisal: "7.0"
- ruby-version: 3.3.5
appraisal: "8.0"
exclude:
- ruby-version: 2.3.0
appraisal: "4.0"
- ruby-version: 2.3.0
appraisal: "4.2"
- ruby-version: 2.3.0
appraisal: "6.0"
- ruby-version: 2.4.4
appraisal: "3.2"
- ruby-version: 2.4.4
appraisal: "4.0"
- ruby-version: 2.4.4
appraisal: "4.1"
- ruby-version: 2.4.4
appraisal: "4.2"
- ruby-version: 2.4.4
appraisal: "6.0"
- ruby-version: 2.5.5
appraisal: "3.2"
- ruby-version: 2.5.5
appraisal: "4.0"
- ruby-version: 2.5.5
appraisal: "4.1"
- ruby-version: 2.5.5
appraisal: "4.2"
- ruby-version: 2.5.5
appraisal: "5.2"
- ruby-version: 2.6.3
appraisal: "3.2"
- ruby-version: 2.6.3
appraisal: "4.0"
- ruby-version: 2.6.3
appraisal: "4.1"
- ruby-version: 2.6.3
appraisal: "4.2"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: default
bundler: "1.17.3"
- name: Remove default Gemfile
run: rm -f Gemfile
- name: Remove default Gemfile.lock
run: rm -f Gemfile.lock
- name: Set Gemfile
run: cp gemfiles/${{ matrix.appraisal }}.gemfile Gemfile
- name: Bundle
run: bundle install
- name: Run tests
run: bundle exec rake