-
Notifications
You must be signed in to change notification settings - Fork 33
39 lines (30 loc) · 887 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (30 loc) · 887 Bytes
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
name: Test
on:
push:
branches: [main]
pull_request:
env:
RUBYOPT: --enable-frozen-string-literal --debug-frozen-string-literal
jobs:
test:
name: on ruby ${{matrix.ruby}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.3", "3.4", "4.0", head, jruby-10.0, jruby-10.1]
env:
# Released Bundler is broken on ruby-head due to ruby/ruby#16895.
# Use Ruby's bundled Bundler until rubygems/rubygems#9529 is released.
BUNDLER_VERSION: ${{ matrix.ruby == 'head' && '0' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: RSpec
run: bin/rspec