Files
cache/__tests__/verify-cache-files.sh
signalhub-ci-mirror 86b2aded7f
Tests / test-proxy-save (push) Failing after 5s
Licensed / Check licenses (push) Failing after 1m35s
Tests / build (ubuntu-latest) (push) Successful in 9m59s
Tests / test-save (ubuntu-latest) (push) Successful in 46s
Tests / test-proxy-restore (push) Skipped
Code scanning - action / CodeQL-Build (push) Failing after 10m6s
Tests / build (windows-latest) (push) Canceled after 0s
Tests / build (macOS-latest) (push) Canceled after 0s
Tests / test-save (macOS-latest) (push) Canceled after 0s
Tests / test-save (windows-latest) (push) Canceled after 0s
Tests / test-restore (macOS-latest) (push) Canceled after 0s
Tests / test-restore (ubuntu-latest) (push) Canceled after 0s
Tests / test-restore (windows-latest) (push) Canceled after 0s
Vendored snapshot of cache@v4 (no upstream history)
2026-09-18 18:02:11 +00:00

37 lines
660 B
Bash
Executable File

#!/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