Skip to content

Commit 5cd9a2b

Browse files
committed
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 5cd9a2b

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,19 @@ 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+
steps:
162+
- uses: actions/checkout@v3
163+
- uses: ruby/setup-ruby@v1
164+
with:
165+
ruby-version: ${{ matrix.ruby }}
166+
bundler-cache: true
167+
- run: bundle exec rspectre

Gemfile.lock

Lines changed: 5 additions & 1 deletion
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)
@@ -41,6 +41,9 @@ GEM
4141
diff-lcs (>= 1.2.0, < 2.0)
4242
rspec-support (~> 3.12.0)
4343
rspec-support (3.12.0)
44+
rspectre (0.1.0)
45+
parser (>= 3.2.2.1)
46+
rspec (~> 3.9)
4447
rubocop (1.47.0)
4548
json (~> 2.3)
4649
parallel (~> 1.10)
@@ -70,6 +73,7 @@ DEPENDENCIES
7073
rspec (~> 3.10)
7174
rspec-core (~> 3.10)
7275
rspec-its (~> 1.3.0)
76+
rspectre (~> 0.1)
7377
rubocop (~> 1.7)
7478

7579
BUNDLED WITH

mutant.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ Gem::Specification.new do |gem|
3434
gem.add_development_dependency('rspec', '~> 3.10')
3535
gem.add_development_dependency('rspec-core', '~> 3.10')
3636
gem.add_development_dependency('rspec-its', '~> 1.3.0')
37+
gem.add_development_dependency('rspectre', '~> 0.1')
3738
gem.add_development_dependency('rubocop', '~> 1.7')
3839
end

0 commit comments

Comments
 (0)