Skip to content

Commit 49154be

Browse files
committedMay 21, 2023
Add RSpectre to CI
- This can help detect unused test setup on an ongoing basis and also helps me by giving me a bigger corpus of [`rspectre`](https://github.com/dgollahon/rspectre) users.
1 parent 4e7a621 commit 49154be

File tree

4 files changed

+109
-1
lines changed

4 files changed

+109
-1
lines changed
 

‎.github/workflows/ci.yml

+18
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,21 @@ jobs:
149149
ruby-version: ${{ matrix.ruby }}
150150
bundler-cache: true
151151
- run: bundle exec rubocop
152+
rspectre:
153+
name: RSpectre
154+
runs-on: ${{ matrix.os }}
155+
timeout-minutes: 10
156+
strategy:
157+
fail-fast: false
158+
matrix:
159+
ruby: [ruby-3.2]
160+
os: [ubuntu-latest]
161+
env:
162+
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile.rspectre
163+
steps:
164+
- uses: actions/checkout@v3
165+
- uses: ruby/setup-ruby@v1
166+
with:
167+
ruby-version: ${{ matrix.ruby }}
168+
bundler-cache: true
169+
- run: bundle exec rspectre

‎Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GEM
2020
diff-lcs (1.5.0)
2121
json (2.6.3)
2222
parallel (1.22.1)
23-
parser (3.2.2.0)
23+
parser (3.2.2.1)
2424
ast (~> 2.4.1)
2525
rainbow (3.1.1)
2626
regexp_parser (2.6.2)

‎Gemfile.rspectre

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec name: 'mutant'
6+
7+
# This must be specified in a separate Gemfile because `rspectre` does not support ruby 2.7
8+
gem 'rspectre', '~> 0.1'
9+
10+
eval_gemfile 'Gemfile.shared'

‎Gemfile.rspectre.lock

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
PATH
2+
remote: .
3+
specs:
4+
mutant (0.11.19)
5+
diff-lcs (~> 1.3)
6+
parser (~> 3.2.2)
7+
regexp_parser (~> 2.6.1)
8+
sorbet-runtime (~> 0.5.0)
9+
unparser (~> 0.6.7)
10+
11+
GEM
12+
remote: https://oss:Px2ENN7S91OmWaD5G7MIQJi1dmtmYrEh@gem.mutant.dev/
13+
specs:
14+
mutant-license (0.1.1.2.2355046999240944981729280251890364410689.5)
15+
16+
GEM
17+
remote: https://rubygems.org/
18+
specs:
19+
ast (2.4.2)
20+
diff-lcs (1.5.0)
21+
json (2.6.3)
22+
parallel (1.23.0)
23+
parser (3.2.2.1)
24+
ast (~> 2.4.1)
25+
rainbow (3.1.1)
26+
regexp_parser (2.6.2)
27+
rexml (3.2.5)
28+
rspec (3.12.0)
29+
rspec-core (~> 3.12.0)
30+
rspec-expectations (~> 3.12.0)
31+
rspec-mocks (~> 3.12.0)
32+
rspec-core (3.12.2)
33+
rspec-support (~> 3.12.0)
34+
rspec-expectations (3.12.3)
35+
diff-lcs (>= 1.2.0, < 2.0)
36+
rspec-support (~> 3.12.0)
37+
rspec-its (1.3.0)
38+
rspec-core (>= 3.0.0)
39+
rspec-expectations (>= 3.0.0)
40+
rspec-mocks (3.12.5)
41+
diff-lcs (>= 1.2.0, < 2.0)
42+
rspec-support (~> 3.12.0)
43+
rspec-support (3.12.0)
44+
rspectre (0.1.0)
45+
parser (>= 3.2.2.1)
46+
rspec (~> 3.9)
47+
rubocop (1.51.0)
48+
json (~> 2.3)
49+
parallel (~> 1.10)
50+
parser (>= 3.2.0.0)
51+
rainbow (>= 2.2.2, < 4.0)
52+
regexp_parser (>= 1.8, < 3.0)
53+
rexml (>= 3.2.5, < 4.0)
54+
rubocop-ast (>= 1.28.0, < 2.0)
55+
ruby-progressbar (~> 1.7)
56+
unicode-display_width (>= 2.4.0, < 3.0)
57+
rubocop-ast (1.28.1)
58+
parser (>= 3.2.1.0)
59+
ruby-progressbar (1.13.0)
60+
sorbet-runtime (0.5.10837)
61+
unicode-display_width (2.4.2)
62+
unparser (0.6.7)
63+
diff-lcs (~> 1.3)
64+
parser (>= 3.2.0)
65+
66+
PLATFORMS
67+
ruby
68+
69+
DEPENDENCIES
70+
mutant!
71+
mutant-license!
72+
parallel (~> 1.3)
73+
rspec (~> 3.10)
74+
rspec-core (~> 3.10)
75+
rspec-its (~> 1.3.0)
76+
rspectre (~> 0.1)
77+
rubocop (~> 1.7)
78+
79+
BUNDLED WITH
80+
2.4.13

0 commit comments

Comments
 (0)