From 4f83ad785643630112afc3afc7ae3a98049fb47d Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Sun, 15 Oct 2023 17:00:33 -0700 Subject: [PATCH] Ensure rspec rake task returns the exit code (#13) Prior to this change the default rake task (rake test) was not returning the exit code --- .github/workflows/test.yml | 4 +++- Rakefile | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f272b64..ab2f26a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,4 +58,6 @@ jobs: - name: Run tests run: | - bundle exec rake + bundle exec rake db:create + bundle exec rake db:migrate + bundle exec rake test diff --git a/Rakefile b/Rakefile index 58a63e8..4a97f76 100644 --- a/Rakefile +++ b/Rakefile @@ -13,6 +13,7 @@ require 'bundler/gem_tasks' task :test do system("rspec", out: STDOUT) + exit $?.exitstatus end task default: :test