Skip to content

Commit 2e940c8

Browse files
committed
Add :spec rake task
- use this in github action
1 parent b18295a commit 2e940c8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
- uses: ruby/setup-ruby@v1
1212
with:
1313
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
14-
- run: bundle exec rspec
14+
- run: bundle exec rake spec

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ gem 'rubyzip'
88
gem 'activesupport'
99
gem 'activemodel'
1010
gem 'rspec'
11+
gem 'simplecov', require: false
1112
gem 'timecop'
1213
gem 'webmock'
13-
gem 'simplecov', require: false, group: :test

Rakefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rspec/core/rake_task'
21
require_relative 'lib/stemcell/builder'
32

43
import 'lib/tasks/build/aws.rake'
@@ -13,3 +12,6 @@ import 'lib/tasks/package/vsphere_ova.rake'
1312

1413
import 'lib/tasks/publish/azure.rake'
1514
import 'lib/tasks/publish/gcp.rake'
15+
16+
require 'rspec/core/rake_task'
17+
RSpec::Core::RakeTask.new(:spec)

0 commit comments

Comments
 (0)