mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 21:27:11 -07:00
Add GitHub workflows for test and release
Also: - Fix test scenario that failed due to fuzzy completions - Bump Cucumber Fixes #36
This commit is contained in:
parent
04ecbe7361
commit
244456c681
9 changed files with 205 additions and 15 deletions
|
@ -34,14 +34,14 @@ def _uninstall_candidate_version(candidate_dir)
|
|||
end
|
||||
|
||||
When(/^candidate (\w+) is uninstalled$/) do |candidate|
|
||||
puts `ls ~/.sdkman/candidates/#{candidate}`
|
||||
log `ls ~/.sdkman/candidates/#{candidate}`
|
||||
Dir["#{ENV['HOME']}/.sdkman/candidates/#{candidate}/*"].each do |candidate_dir|
|
||||
_uninstall_candidate_version(candidate_dir)
|
||||
end
|
||||
puts `ls ~/.sdkman/candidates/#{candidate}`
|
||||
log `ls ~/.sdkman/candidates/#{candidate}`
|
||||
end
|
||||
|
||||
Given(/^file ([a-zA-Z0-9-_.\/]+) exists with content/) do |filename,content|
|
||||
Given(/^file ([a-zA-Z0-9\-_.\/]+) exists with content/) do |filename,content|
|
||||
FileUtils.mkdir_p(File.dirname(filename))
|
||||
File.write(filename, content)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue