Skip to content

Commit

Permalink
Run specs in github actions and add specs to default rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosedler committed Nov 23, 2023
1 parent 0ed2cde commit 304b3b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run: |
gem install bundler:2.2.26
bundle install --no-deployment
- name: Run tests
run: bundle exec rake

- name: Run specs
run: bundle exec rspec
- name: Run feature tests
run: bundle exec cucumber
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ require 'bundler'
Bundler::GemHelper.install_tasks

desc 'Default: Run all tests'
task default: :features
task default: [:rspec, :features]

task :features do
exec 'bundle exec cucumber'
system 'bundle exec cucumber'
end

task :rspec do
system 'bundle exec rspec'
end

task :readme do
Expand Down

0 comments on commit 304b3b2

Please sign in to comment.