vendor actions/cache @ v4 (tree snapshot, no history)
Some checks failed
Tests / build (windows-latest) (push) Has been cancelled
Tests / test-save (macOS-latest) (push) Has been cancelled
Tests / test-save (windows-latest) (push) Has been cancelled
Tests / test-restore (macOS-latest) (push) Has been cancelled
Tests / test-restore (ubuntu-latest) (push) Has been cancelled
Tests / test-restore (windows-latest) (push) Has been cancelled
Tests / build (macOS-latest) (push) Has been cancelled
Check dist/ / Check dist/ (push) Failing after 1s
Licensed / Check licenses (push) Failing after 6m37s
Tests / build (ubuntu-latest) (push) Failing after 5m52s
Tests / test-save (ubuntu-latest) (push) Failing after 6m36s
Tests / test-proxy-save (push) Failing after 24s
Tests / test-proxy-restore (push) Has been skipped
Code scanning - action / CodeQL-Build (push) Failing after 1m31s
Close inactive issues / close-issues (push) Successful in 15s
Some checks failed
Tests / build (windows-latest) (push) Has been cancelled
Tests / test-save (macOS-latest) (push) Has been cancelled
Tests / test-save (windows-latest) (push) Has been cancelled
Tests / test-restore (macOS-latest) (push) Has been cancelled
Tests / test-restore (ubuntu-latest) (push) Has been cancelled
Tests / test-restore (windows-latest) (push) Has been cancelled
Tests / build (macOS-latest) (push) Has been cancelled
Check dist/ / Check dist/ (push) Failing after 1s
Licensed / Check licenses (push) Failing after 6m37s
Tests / build (ubuntu-latest) (push) Failing after 5m52s
Tests / test-save (ubuntu-latest) (push) Failing after 6m36s
Tests / test-proxy-save (push) Failing after 24s
Tests / test-proxy-restore (push) Has been skipped
Code scanning - action / CodeQL-Build (push) Failing after 1m31s
Close inactive issues / close-issues (push) Successful in 15s
This commit is contained in:
36
__tests__/verify-cache-files.sh
Executable file
36
__tests__/verify-cache-files.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Validate args
|
||||
prefix="$1"
|
||||
if [ -z "$prefix" ]; then
|
||||
echo "Must supply prefix argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
path="$2"
|
||||
if [ -z "$path" ]; then
|
||||
echo "Must specify path argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Sanity check GITHUB_RUN_ID defined
|
||||
if [ -z "$GITHUB_RUN_ID" ]; then
|
||||
echo "GITHUB_RUN_ID not defined"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify file exists
|
||||
file="$path/test-file.txt"
|
||||
echo "Checking for $file"
|
||||
if [ ! -e $file ]; then
|
||||
echo "File does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify file content
|
||||
content="$(cat $file)"
|
||||
echo "File content:\n$content"
|
||||
if [ -z "$(echo $content | grep --fixed-strings "$prefix $GITHUB_RUN_ID")" ]; then
|
||||
echo "Unexpected file content"
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user