-
Notifications
You must be signed in to change notification settings - Fork 39
70 lines (66 loc) · 1.6 KB
/
test.yml
File metadata and controls
70 lines (66 loc) · 1.6 KB
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
---
name: Test
'on':
- push
- pull_request
jobs:
# rubocop:
# runs-on: ubuntu-latest
# env:
# CI: true
# steps:
# - uses: actions/checkout@v3
# - name: Set up Ruby 3.4
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.4
# bundler-cache: true
# - name: Run RuboCop
# run: bundle exec rubocop --parallel
test:
name: "${{matrix.ruby}} ${{matrix.os || 'ubuntu-latest'}}"
env:
CI: true
runs-on: ${{matrix.os || 'ubuntu-latest'}}
continue-on-error: "${{matrix.experimental || false}}"
strategy:
fail-fast: false
matrix:
ruby:
- ruby-2.4
- ruby-2.5
- ruby-2.6
- ruby-2.7
- ruby-3.0
- ruby-3.1
- ruby-3.2
- ruby-3.3
- ruby-3.4
- jruby-9.4
- truffleruby
os:
- ubuntu-latest
- macos-latest
- windows-latest
exclude:
- ruby: ruby-2.4
os: macos-latest
- ruby: ruby-2.5
os: macos-latest
- ruby: jruby-9.4
os: windows-latest
- ruby: truffleruby
os: windows-latest
steps:
- name: repo checkout
uses: actions/checkout@v3
- name: load ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{matrix.ruby}}"
- name: bundle
run: bundle install --jobs 4 --retry 3
- name: test
timeout-minutes: 60
continue-on-error: "${{matrix.experimental || false}}"
run: bundle exec rake spec