-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First pass at removing set-output
#235
Changes from all commits
d71060f
d0a2664
ed70145
b687a69
58f0a95
0835a07
b7f48f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set gitHubOutputFile composer_paths_01.txt | ||
set ::env(GITHUB_OUTPUT) $gitHubOutputFile | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_paths.sh | ||
match_max 100000 | ||
|
@@ -9,9 +12,25 @@ expect "::debug::Composer path is '*'\r | |
::debug::Composer cache directory found at '*'\r | ||
::debug::File composer.json found at './composer.json'\r | ||
::debug::File composer.lock path computed as './composer.lock'\r | ||
::set-output name=command::*\r | ||
::set-output name=cache-dir::*\r | ||
::set-output name=json::./composer.json\r | ||
::set-output name=lock::./composer.lock\r | ||
" | ||
expect eof | ||
|
||
# Confirm environment variables. | ||
set fp [open $gitHubOutputFile r] | ||
set fileData [read $fp] | ||
close $fp | ||
|
||
set expectedValue "composer_command=*\r | ||
cache-dir=*\r | ||
json=./composer.json\r | ||
lock=./composer.lock\n | ||
" | ||
|
||
if { $expectedValue != $fileData } { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test fails as it needs to do a regex compare, not a direct comparison. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My bash scripting is admittedly poor. Do you have an example I could use as a guide? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My bash scripting skills are even worse, then again, my Google skills are reasonable ;-)
|
||
puts "\nExpected output variable does not match. Received:\n" | ||
puts $fileData | ||
exit 1 | ||
} | ||
|
||
# Clean up | ||
file delete $gitHubOutputFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(here and in the other test files)