-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (42 loc) · 1.27 KB
/
test-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 gem scaffolding
on:
push:
paths:
- 'ruby/**' # Only run action when ruby-related things are touched
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [2.1, 2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, head]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
working-directory: ruby/
- run: cd ruby && bundle exec rake
# Workaround for broken issue
# ```
# ERROR: While executing gem ... (RuntimeError)
# Marshal.load reentered at marshal_load
# ```
# suggested in https://github.com/ruby/setup-ruby/issues/496 (use ubuntu 20.04 instead of a later version)
test-legacy-workaround:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
ruby: [2.2]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
working-directory: ruby/
- run: cd ruby && bundle exec rake