forked from rubygems/rubygems
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 2.19 KB
/
rubygems.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
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-14 }
- { name: Windows, value: windows-2022 }
ruby:
- { name: "3.1", value: 3.1.6 }
- { name: "3.2", value: 3.2.6 }
- { name: "3.3", value: 3.3.6 }
- { name: "3.4", value: 3.4.1 }
include:
- ruby: { name: jruby, value: jruby-9.4.9.0 }
os: { name: Ubuntu, value: ubuntu-24.04 }
- ruby: { name: truffleruby, value: truffleruby-24.1.1 }
os: { name: Ubuntu, value: ubuntu-24.04 }
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup ruby
uses: ruby/setup-ruby@868b3f088412f139260f27f5b148179b9dd6b008 # v1.208.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