-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (51 loc) · 1.46 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
name: rake test
on:
push:
branches: ["5-stable"]
pull_request:
branches: ["5-stable"]
jobs:
test-cruby:
name: rake test with CRuby ${{ matrix.cruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cruby: ["2.4", "2.7", "3.0", "3.3"]
steps:
- uses: actions/checkout@v2
- name: Setup CRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.cruby }}
- run: gem install minitest -v 5.15.0
- run: gem install bundle rake oj
- name: Cache the dependent gems
uses: actions/cache@v2
with:
path: ./cache
key: ${{ runner.os }}-ruby-${{ matrix.cruby }}-${{ hashFiles('./gem.snapshot') }}
- run: ruby -v
- 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.3", "jruby-9.4"]
steps:
- uses: actions/checkout@v2
- name: Setup JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.jruby }}
- run: gem install minitest -v 5.15.0
- run: gem install bundle rake jrjackson
- name: Cache the dependent gems
uses: actions/cache@v2
with:
path: ./cache
key: ${{ runner.os }}-ruby-${{ matrix.jruby }}-${{ hashFiles('./gem.snapshot') }}
- run: ruby -v
- run: rake publictest