-
Notifications
You must be signed in to change notification settings - Fork 81
45 lines (42 loc) · 1.3 KB
/
specs.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
45
name: Specs
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGES.md'
pull_request:
schedule:
- cron: '52 8 * * *'
jobs:
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-20.04
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3', 'jruby-9.4.7.0']
gemfile: [ 'standalone', 'activemodel-5', 'activemodel-6', 'activemodel-7' ]
exclude:
- ruby-version: '3.3'
gemfile: 'activemodel-5'
- ruby-version: '3.2'
gemfile: 'activemodel-5'
- ruby-version: '3.1'
gemfile: 'activemodel-5'
- ruby-version: '3.0'
gemfile: 'activemodel-5'
- ruby-version: '2.6'
gemfile: 'activemodel-7'
- ruby-version: 'jruby-9.4.7.0'
gemfile: 'activemodel-5'
steps:
- uses: actions/checkout@v4
- 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 specs
run: |
bundle exec rspec