feat(test.yml): add KMS key ID to artifact upload and download steps for enhanced security
refactor(test.yml): replace PowerShell scripts with bash for file existence checks for better cross-platform compatibility
if(!((Get-Content $file1) -ceq "Lorem ipsum dolor sit amet") -or !((Get-Content $file2) -ceq "Hello world from file#2"))
exit 1
{
fi
Write-Error "File contents of downloaded artifacts are incorrect"
shell:bash
}
shell:pwsh
# Download Artifact #3 and verify the correctness of the content
# Download Artifact #3 and verify the correctness of the content
- name:'Download artifact #3'
- name:'Download artifact #3'
@ -138,15 +145,13 @@ jobs:
- name:'Verify Artifact #3'
- name:'Verify Artifact #3'
run:|
run:|
$gzipFile = "gzip/artifact/path/gzip.txt"
$gzipFile = "gzip/artifact/path/gzip.txt"
if(!(Test-Path -path $gzipFile))
if test -f "$gzipFile"; then
{
echo "$file exists."
Write-Error "Expected file do not exist"
else
}
echo "$file does not exist."
if(!((Get-Content $gzipFile) -ceq "This is a going to be a test for a large enough file that should get compressed with GZip. The @actions/artifact package uses GZip to upload files. This text should have a compression ratio greater than 100% so it should get uploaded using GZip"))
exit 1
{
fi
Write-Error "File contents of downloaded artifact is incorrect"