-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
66 lines (56 loc) · 2.19 KB
/
Copy pathrubygems.yml
File metadata and controls
66 lines (56 loc) · 2.19 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
name: rubygems
on:
pull_request:
push:
branches:
- master
concurrency:
group: ci-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
rubygems:
name: Rubygems on ${{ matrix.os.name }} (${{ matrix.ruby.name }})
runs-on: ${{ matrix.os.value }}
strategy:
fail-fast: false
matrix:
os:
- { name: Ubuntu, value: ubuntu-24.04 }
- { name: macOS, value: macos-15 }
- { name: Windows, value: windows-2025 }
ruby:
- { name: "3.1", value: 3.1.7 }
- { name: "3.2", value: 3.2.8 }
- { name: "3.3", value: 3.3.8 }
- { name: "3.4", value: 3.4.3 }
include:
- ruby: { name: jruby, value: jruby-10.0.0.1 }
os: { name: Ubuntu, value: ubuntu-24.04 }
- ruby: { name: truffleruby, value: truffleruby-24.2.0 }
os: { name: Ubuntu, value: ubuntu-24.04 }
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup ruby
uses: ruby/setup-ruby@bb0f760b6c925183520ee0bcc9c4a432a7c8c3c6 # v1.241.0
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
- name: Update RBS # https://github.com/ruby/rbs/pull/1612
run: ruby -e 'begin; require "rbs"; rescue LoadError; exit; end; exec(*%w{gem install --version 3.4.0 rbs}) if Gem::Requirement.new([">= 1.6", "< 3.1.1"]).satisfied_by?(Gem::Version.new(RBS::VERSION))'
- name: Install Dependencies
run: bin/rake setup
- name: Run Test
run: bin/rake test
if: matrix.ruby.name != 'truffleruby' && matrix.ruby.name != 'jruby'
- name: Run Test isolatedly
run: bin/rake test:isolated
if: matrix.ruby.name == '3.4' && matrix.os.name != 'Windows'
- name: Run Test (JRuby)
run: JRUBY_OPTS=--debug bin/rake test
if: startsWith(matrix.ruby.name, 'jruby')
- name: Run Test (Truffleruby)
run: TRUFFLERUBYOPT="--experimental-options --testing-rubygems" bin/rake test
if: matrix.ruby.name == 'truffleruby'
timeout-minutes: 60