-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (40 loc) · 1.15 KB
/
ruby.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
name: Ruby
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: >-
${{ matrix.ruby }} / ${{ matrix.gemfile }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- { ruby: '3.0', c-o-e: false }
- { ruby: 3.1, c-o-e: false }
- { ruby: 3.2, c-o-e: false }
- { ruby: 3.3, c-o-e: false }
- { ruby: jruby-9.4.5.0, c-o-e: false }
- { ruby: ruby-head, c-o-e: true }
- { ruby: jruby-head, c-o-e: true }
- { ruby: truffleruby, c-o-e: true }
- { ruby: truffleruby-head, c-o-e: true }
- { ruby: 3.3, gemfile: ./gemfiles/miniracer, c-o-e: false }
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Update rubygems
run: gem update --system
- name: Install dependencies
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile || 'Gemfile' }}
run: bundle install
- name: Run tests
run: bundle exec rake
continue-on-error: ${{ matrix.c-o-e || false }}