-
Notifications
You must be signed in to change notification settings - Fork 105
38 lines (36 loc) · 1.03 KB
/
ruby.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
name: Ruby
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby-version: 3.2
- ruby-version: 3.1
- ruby-version: 3.0
- ruby-version: 2.7
- ruby-version: 2.7
gemfile: gemfiles/rails_5.0.gemfile
- ruby-version: 2.7
gemfile: gemfiles/rails_5.1.gemfile
- ruby-version: 2.7
gemfile: gemfiles/rails_5.2.gemfile
- ruby-version: 3.2
gemfile: gemfiles/rails_6.0.gemfile
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Build and test
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
BUNDLER: ${{ matrix.bundler-version }}
run: |
gem uninstall bundler
gem install bundler -v ${BUNDLER:-2.1.4}
bundle install --jobs 4 --retry 3
bundle exec rake