Skip to content

Commit

Permalink
Fail early if necessary env variables are not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Joé Dupuis authored and Joé Dupuis committed Feb 22, 2025
1 parent f047189 commit cf5e08f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ end
task default: %i[test]

task :test do
[
"AZURE_ACCOUNT_NAME",
"AZURE_PRIVATE_CONTAINER",
"AZURE_PUBLIC_CONTAINER",
].each do |env|
value = ENV[env]
raise "#{env} variable need to be set if you are using the nix/devenv environment, consider running generate-env-file" if value.nil? || value.empty?
end

Rake::Task["test_client"].execute
Rake::Task["test_rails"].execute
end
Expand Down

0 comments on commit cf5e08f

Please sign in to comment.