-
Notifications
You must be signed in to change notification settings - Fork 19
58 lines (57 loc) · 1.61 KB
/
rake-test.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
name: rake test
on:
push:
branches: ["5-stable"]
pull_request:
branches: ["*"]
jobs:
test-cruby:
name: rake test with CRuby ${{ matrix.cruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cruby: ["2.4", "3.3"]
steps:
- name: Checkout the repository(CRuby)
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup CRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cruby }}
- name: Install minitest
run: gem install minitest -v 5.15.0
- name: Install oj
run: gem install oj -v 3.10.0
- name: Install bundle and rake
run: gem install bundle rake
- name: Check the CRuby version
run: ruby -v
- name: Execute public tests
run: rake publictest
test-jruby:
name: rake test with JRuby ${{ matrix.jruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jruby: ["jruby-9.2", "jruby-9.4"]
steps:
- name: Checkout the repository(JRuby)
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.jruby }}
- name: Install minitest
run: gem install minitest -v 5.15.0
- name: Install bundle, rake, and jrjackson
run: gem install bundle rake jrjackson
- name: Check the JRuby version
run: jruby -v
- name: Execute public tests
run: rake publictest