-
Notifications
You must be signed in to change notification settings - Fork 93
51 lines (44 loc) · 1.19 KB
/
test.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
name: Test
on:
push:
branches: ['*']
pull_request:
branches: ['*']
jobs:
test_ruby_versions:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.allow_failures == 'allow failures' || false }}
env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}" ### allows adding gemfile: to the matrix, bundler will automatically pick this up
strategy:
fail-fast: false
matrix:
include:
- ruby: "2.0"
- ruby: 2.1
- ruby: 2.2
- ruby: 2.3
- ruby: 2.4
- ruby: 2.5
- ruby: 2.6
- ruby: 2.7
- ruby: "3.0" ### must be quoted otherwise will be treated as "3" which resolves to latest 3.x version
- ruby: 3.1
- ruby: 3.2
- ruby: 3.3
- ruby: head
allow_failures: 'allow failures'
- ruby: jruby-9.3
- ruby: jruby-9.4
- ruby: jruby-head
allow_failures: 'allow failures'
steps:
- uses: actions/checkout@v4
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- name: Run tests
run: |
bundle exec rake