-
Notifications
You must be signed in to change notification settings - Fork 43
44 lines (37 loc) · 1.07 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
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
branches: [ '*' ]
jobs:
test_matrix:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: ['2.7.6', 'jruby-9.4.11.0']
gemfile:
- rails_60
- rails_61
include:
- ruby-version: 2.7.6
gemfile: rails_70
- ruby-version: 3.1.5
gemfile: rails_71
- ruby-version: 3.2.7
gemfile: rails_72
- ruby-version: 3.3.7
gemfile: rails_80
env:
RAILS_ENV: test
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- name: Add --no-document option to .gemrc file to speed up bundle install
run: "echo 'gem: --no-document' > ~/.gemrc"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run CI task
run: bundle exec rake