-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add Rakefile with spec:unit and :rubocop tasks - add 'ostruct' require to cpi.json.erb_spec.rb
- Loading branch information
Showing
5 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Run Specs | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
unit_specs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: { lfs: true } | ||
- uses: ruby/setup-ruby@v1 | ||
with: { working-directory: src/bosh_openstack_cpi/ } | ||
- name: lint-and-test | ||
run: | | ||
bundle install | ||
bundle exec rake rubocop | ||
bundle exec rake spec:unit | ||
working-directory: src/bosh_openstack_cpi/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ group :development, :test do | |
gem 'pry-byebug' | ||
gem 'rspec' | ||
gem 'rake' | ||
gem 'rubocop' | ||
gem 'webmock' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
|
||
namespace :spec do | ||
RSpec::Core::RakeTask.new(:unit) do |t| | ||
t.pattern = 'spec/unit/**{,/*/**}/*_spec.rb' | ||
end | ||
end | ||
|
||
RuboCop::RakeTask.new do |t| | ||
t.options = ['--fail-level=E'] # only fail on `Error` | ||
end |
1 change: 1 addition & 0 deletions
1
src/bosh_aws_cpi/spec/unit/bosh_release/jobs/cpi/templates/cpi.json.erb_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters