mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Add validation for benchmark report zip file and list directory contents
This commit is contained in:
parent
bbcdbb4151
commit
f0de677b69
11
.github/workflows/docs-and-testcov.yml
vendored
11
.github/workflows/docs-and-testcov.yml
vendored
@ -118,13 +118,16 @@ jobs:
|
||||
curl -L -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-o benchmark-report.zip "$artifact_url"
|
||||
|
||||
|
||||
# check if there is a benchmark-report.zip file
|
||||
if [ ! -f benchmark-report.zip ]; then
|
||||
echo "benchmark-report.zip not found!"
|
||||
# check if the zip file is valid
|
||||
if ! unzip -tq benchmark-report.zip; then
|
||||
echo "benchmark-report.zip is invalid or corrupted!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Print all files in the current directory
|
||||
echo "Files in the current directory:"
|
||||
ls -al
|
||||
|
||||
unzip benchmark-report.zip -d benchmark-report
|
||||
# there will be a tar file in the benchmark-report directory
|
||||
# called artifact.tar. unzip it into the benchmark-report
|
||||
|
Loading…
x
Reference in New Issue
Block a user