-
-
Notifications
You must be signed in to change notification settings - Fork 52
82 lines (80 loc) · 2.01 KB
/
rspec.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
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
73
74
75
76
77
78
79
80
81
82
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
rspec:
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
VERIFY_RESERVED: 1
CI: true
strategy:
fail-fast: false
matrix:
ruby: ["3.0"]
gemfile: [
"gemfiles/rails6.gemfile"
]
rbs: ['false']
include:
- ruby: "3.2"
gemfile: "Gemfile"
rbs: 'true'
- ruby: "3.2"
gemfile: "gemfiles/rails7.gemfile"
rbs: 'false'
- ruby: "3.2"
gemfile: "gemfiles/railsmaster.gemfile"
rbs: 'false'
- ruby: "3.1"
gemfile: "Gemfile"
rbs: 'true'
- ruby: "3.1"
gemfile: "gemfiles/rails7.gemfile"
rbs: 'false'
- ruby: "3.1"
gemfile: "gemfiles/railsmaster.gemfile"
rbs: 'false'
- ruby: "2.5"
gemfile: "gemfiles/rails5.gemfile"
rbs: 'false'
- ruby: "2.7"
gemfile: "gemfiles/rails5.gemfile"
rbs: 'false'
- ruby: "2.6"
gemfile: "gemfiles/rails6.gemfile"
rbs: 'false'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler: 2.2.15
bundler-cache: true
- name: Run Ruby Next
run: bundle exec rake nextify
- name: Run RSpec
run: |
bundle exec rake spec
- name: Run RSpec without rails
run: |
bundle exec rake spec:norails
- name: Run Rails secrets tests for uninitialized app
run: |
bundle exec rake spec:secrets
- name: Run Rails autoload tests
run: |
bundle exec rake spec:autoload
- name: Run RSpec with RBS runtime checks
if: matrix.rbs == 'true'
env:
# RBS adds method aliases
VERIFY_RESERVED: 0
run: |
bundle exec rbs collection install
bundle exec rake spec:rbs -- --force-color