forked from rubygems/rubygems
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.42 KB
/
ubuntu-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
name: ubuntu-rubygems
on:
pull_request:
push:
branches:
- master
- 3.2
concurrency:
group: ci-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
ubuntu_rubygems:
name: Rubygems on Ubuntu (${{ matrix.ruby.name }})
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- { name: "2.3", value: 2.3.8 }
- { name: "2.4", value: 2.4.10 }
- { name: "2.5", value: 2.5.9 }
- { name: "2.6", value: 2.6.8 }
- { name: "2.7", value: 2.7.4 }
- { name: "3.0", value: 3.0.2 }
- { name: jruby-9.3, value: jruby-9.3.0.0 }
- { name: truffleruby-21, value: truffleruby-21.2.0 }
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby.value }}
bundler: none
- name: Install Dependencies
run: rake setup
- name: Run Test
run: rake test
if: "!startsWith(matrix.ruby.name, 'truffleruby') && !startsWith(matrix.ruby.name, 'jruby')"
- name: Run Test (JRuby)
run: JRUBY_OPTS=--debug rake test
if: startsWith(matrix.ruby.name, 'jruby')
- name: Run Test (Truffleruby)
run: TRUFFLERUBYOPT="--experimental-options --testing-rubygems" rake test
if: startsWith(matrix.ruby.name, 'truffleruby')
timeout-minutes: 60