-
Notifications
You must be signed in to change notification settings - Fork 551
43 lines (32 loc) · 897 Bytes
/
stable.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: stable
on:
pull_request:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.4.10, 2.5.8, 2.6.6, 2.7.1, jruby-9.2.11.1]
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Get sqlite for Rails test projects
run: sudo apt-get install libsqlite3-dev
- name: Install bundler
run: gem i bundler
- name: Install dependencies
run: |
bundle config set --local without benchmark
bundle install --jobs=3
- name: Run tests (MRI)
run: bundle exec rake
if: "!startsWith(matrix.ruby, 'jruby')"
- name: Run tests (JRuby)
run: JRUBY_OPTS=--debug bundle exec rake
if: startsWith(matrix.ruby, 'jruby')