-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (40 loc) · 1.14 KB
/
Copy pathruby.yml
File metadata and controls
44 lines (40 loc) · 1.14 KB
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: Ruby
on:
push:
branches: [ "master" ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-22.04 # at time of writing ubuntu-latest was still 20.04
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: test/gemfiles/${{ matrix.gemfile }}
strategy:
fail-fast: false
matrix:
ruby-version: [ '3.2', '3.3' ]
gemfile: [ 'rails-7.2', 'rails-8.0' ]
include:
- ruby-version: '3.0'
gemfile: rails-6.1 # EOL
- ruby-version: '3.1'
gemfile: rails-7.0
- ruby-version: '3.2'
gemfile: rails-7.1
- ruby-version: '3.4'
gemfile: rails-main
steps:
- uses: actions/checkout@v3
- 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
bundler: ${{ matrix.bundler }}
- name: Run tests
run: bundle exec rake