-
Notifications
You must be signed in to change notification settings - Fork 211
35 lines (33 loc) · 1.2 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
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, "3.0", 3.1, 3.2]
bundler: [default]
gemfile:
- active_support_6
- active_support_7
include:
- { ruby: "2.3", gemfile: "active_support_3", bundler: "1" }
- { ruby: "2.4", gemfile: "active_support_4", bundler: "1" }
- { ruby: "2.5", gemfile: "active_support_4", bundler: "1" }
- { ruby: "2.5", gemfile: "active_support_5", bundler: "1" }
- { ruby: "2.6", gemfile: "active_support_5", bundler: "1" }
- { ruby: "2.6", gemfile: "active_support_6", bundler: "1" }
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: ${{ matrix.bundler }}
bundler-cache: true # runs `bundle install` and caches gems automatically
- name: Run tests
run: bundle exec rake