-
Notifications
You must be signed in to change notification settings - Fork 334
63 lines (50 loc) · 1.23 KB
/
test.yaml
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
name: Run test
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- 1.9.3
- 2.0.0
- 2.1.9
- 2.3.8
- 2.4.10
- 2.5.9
- 2.6.10
- 2.7.8
- 3.0.6
- 3.1.4
- 3.2.2
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
# Bundler with Ruby 2.2.10 doesn't work for the latest Ubuntu.
# See also: https://github.com/ruby/setup-ruby/issues/496#issuecomment-1625000309
test-ruby-2-2-10:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby-version:
- 2.2.10
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake