-
Notifications
You must be signed in to change notification settings - Fork 574
48 lines (39 loc) · 1.17 KB
/
stable.yml
File metadata and controls
48 lines (39 loc) · 1.17 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
name: stable
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: "benchmark"
JRUBY_OPTS: "--debug"
strategy:
fail-fast: false
matrix:
ruby-version:
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'
- '3.4'
- '4.0'
- jruby-9.4
- jruby-10.0
- truffleruby
steps:
- uses: actions/checkout@v6
- run: rm Gemfile.lock
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: default
bundler-cache: true
- name: Run tests
run: bundle exec rake test
if: "!contains(matrix.ruby-version, 'jruby') && matrix.ruby-version != 'truffleruby'"
# Run only `rake spec` on truffleruby and jruby, because `rake` runs
# cucumber which requires headless Chrome via cuprite/ferrum — this is
# unreliable on alternative Ruby implementations.
- name: Run specs (alternative implementations)
run: bundle exec rake spec
if: "contains(matrix.ruby-version, 'jruby') || matrix.ruby-version == 'truffleruby'"