-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default to "locked" if "highest" or "lowest" not passed
- Loading branch information
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set gitHubEnvFile cache_key_07.txt | ||
file delete $gitHubEnvFile | ||
set ::env(GITHUB_ENV) $gitHubEnvFile | ||
|
||
set timeout 3 | ||
spawn ../../bin/cache_key.sh "Windows" "8.0.2" "foobar" "" "some-other-hash" | ||
match_max 100000 | ||
|
||
expect -exact "::notice title=Primary Cache Key::Cache primary key is 'Windows-php-8.0.2-composer-locked-some-other-hash'" | ||
expect -exact "::notice title=Restore Cache Keys::Cache restore keys are 'Windows-php-8.0.2-composer-locked-'" | ||
expect -exact "::set-output name=key::Windows-php-8.0.2-composer-locked-some-other-hash" | ||
expect eof | ||
|
||
set fp [open $gitHubEnvFile r] | ||
set fileData [read $fp] | ||
close $fp | ||
|
||
set expectedValue "CACHE_RESTORE_KEY<<EOF | ||
Windows-php-8.0.2-composer-locked- | ||
EOF | ||
" | ||
|
||
if { $expectedValue != $fileData } { | ||
puts "\nExpected environment variable does not match. Received:\n" | ||
puts $fileData | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env -S expect -f | ||
|
||
set timeout 3 | ||
spawn ../../bin/composer_install.sh "foobar" | ||
match_max 100000 | ||
|
||
expect -exact "::notice title=Composer::Using the following Composer command: 'composer install --no-interaction --no-progress --ansi '" | ||
expect "Installing dependencies from lock file (including require-dev)" | ||
expect "Generating autoload files" | ||
expect eof |