-
Notifications
You must be signed in to change notification settings - Fork 88
73 lines (69 loc) · 2.22 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
# 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"
exclude:
- 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.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: none
- name: Install compatible bundler for all envs
run: gem install bundler -v 1.17.3
- name: Bundle for Appraisal
run: bundle
- name: Install Appraisal dependencies
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
- name: Run tests
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec rake test