-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (66 loc) · 1.7 KB
/
Copy pathtest.yml
File metadata and controls
72 lines (66 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
# permissions:
# contents: read
jobs:
rspec:
name: Ruby ${{matrix.ruby-version}} (${{ matrix.gemfile }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gemfile:
- rails_5.1
- rails_5.2
- rails_6.0
- rails_6.1
- rails_7.0
- rails_7.1
- rails_7.2
- rails_8.0
- rails_8.1
ruby-version:
- "3.2"
- "3.3"
- "3.4"
- "3.5.0-preview1"
- "4.0.0-preview2"
exclude:
# Ruby 3.5.0 Preview 1
- gemfile: rails_5.1
ruby-version: "3.5.0-preview1"
- gemfile: rails_5.2
ruby-version: "3.5.0-preview1"
- gemfile: rails_6.0
ruby-version: "3.5.0-preview1"
- gemfile: rails_6.1
ruby-version: "3.5.0-preview1"
# Ruby 4.0.0 Preview 2
- gemfile: rails_5.1
ruby-version: "4.0.0-preview2"
- gemfile: rails_5.2
ruby-version: "4.0.0-preview2"
- gemfile: rails_6.0
ruby-version: "4.0.0-preview2"
- gemfile: rails_6.1
ruby-version: "4.0.0-preview2"
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
- name: RSpec
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
run: bundle exec rspec