-
Notifications
You must be signed in to change notification settings - Fork 22
31 lines (30 loc) · 1.02 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
specs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
# TODO: test latest MRI, oldest officially maintained MRI, 2.0.0 as oldest version we still support, and one recent JRuby version
- 2.6.5 # on update don't forget to update the condition below
- 2.5.0
- 2.0.0
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install --jobs=3 --deployment --without development
- name: Run tests
run: bundle exec rake spec
if: matrix.ruby-version != '2.6.5'
- name: Run extended tests
run: |
bundle exec rake spec_all_locales &&
bundle exec rake data_cmp &&
bash spec/build/gem_build_test.sh --no-rvm
if: matrix.ruby-version == '2.6.5'