-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.24 KB
/
main.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
on:
pull_request:
branches: ["*"]
push:
branches: [master]
jobs:
test:
strategy:
matrix:
# https://bundler.io/compatibility.html
ruby:
- version: ruby-3.3
bundler: ">=2.5"
- version: ruby-3.2
bundler: ">=2.5"
- version: ruby-3.1
bundler: ">=2.5"
- version: ruby-3.0
bundler: ">=2.5"
- version: ruby-2.7
bundler: "2.4"
- version: ruby-2.6
bundler: "2.4"
- version: ruby-2.5
bundler: "2.3"
- version: ruby-2.4
bundler: "2.3"
- version: ruby-2.3
bundler: "2.3"
# - jruby-9.4
# - jruby-9.3
# - jruby-9.2
# - jruby-9.1
# - jruby-9.0
name: ${{ matrix.ruby.version }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby.version }}
- name: Install bundler
run: gem install bundler -v ${{ matrix.ruby.bundler }}
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rspec