Skip to content

Commit 5667055

Browse files
committed
Add a Rakefile
1 parent 9ef19e5 commit 5667055

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/workflows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
with:
1010
ruby-version: 3.0
1111
bundler-cache: true
12-
- run: bundle exec rubocop bin lib spec demos
12+
- run: bundle exec rake rubocop
1313
specs:
1414
strategy:
1515
matrix:
@@ -23,7 +23,7 @@ jobs:
2323
ruby-version: ${{ matrix.ruby }}
2424
bundler-cache: true
2525
- run: if [[ $(uname) == "Darwin" ]]; then brew install graphviz capstone; else sudo apt-get install graphviz libcapstone3; fi
26-
- run: bundle exec rspec
26+
- run: bundle exec rake specs
2727
specs-no-dependencies:
2828
strategy:
2929
matrix:
@@ -38,4 +38,4 @@ jobs:
3838
bundler-cache: true
3939
- env:
4040
NO_DEPENDENCIES_INSTALLED: true
41-
run: bundle exec rspec
41+
run: bundle exec rake specs

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ GEM
1717
parser (3.0.2.0)
1818
ast (~> 2.4.1)
1919
rainbow (3.0.0)
20+
rake (13.0.6)
2021
regexp_parser (2.1.1)
2122
rexml (3.2.5)
2223
rspec (3.10.0)
@@ -51,6 +52,7 @@ PLATFORMS
5152

5253
DEPENDENCIES
5354
benchmark-ips (~> 2.7)
55+
rake (~> 13.0.6)
5456
rspec (~> 3.8)
5557
rubocop (~> 0.74)
5658
seafoam!

Rakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
task default: :specs
2+
3+
task :specs do
4+
sh 'rspec', 'spec'
5+
end
6+
7+
task :rubocop do
8+
sh 'rubocop', 'bin', 'demos', 'lib', 'spec', 'tools'
9+
end

seafoam.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
1616

1717
spec.add_dependency 'crabstone', '~> 4.0'
1818

19+
spec.add_development_dependency 'rake', '~> 13.0.6'
1920
spec.add_development_dependency 'benchmark-ips', '~> 2.7'
2021
spec.add_development_dependency 'rspec', '~> 3.8'
2122
spec.add_development_dependency 'rubocop', '~> 0.74'

0 commit comments

Comments
 (0)