-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (37 loc) · 1.02 KB
/
ci.yml
File metadata and controls
41 lines (37 loc) · 1.02 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
name: Ruby CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 3.3
engine: cruby
test:
needs: ruby-versions
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
gemfile:
- rails_7.2
- rails_8.0
exclude:
- ruby-version: 3.3
gemfile: rails_8.0
- ruby-version: head
gemfile: rails_7.2
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v6
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake