ci: group job output, print eval results
Useful for debugging.
This commit is contained in:
@@ -10,11 +10,18 @@ driverDrvs=()
|
||||
drivers=()
|
||||
scenarioTests=()
|
||||
|
||||
echo '::group::Eval test drivers'
|
||||
# Call ./test-info.nix
|
||||
testInfo=$(time nix eval --raw --show-trace ../..#ciTestInfo)
|
||||
# This sets variables `driverDrvs`, `drivers`, `scenarioTests`
|
||||
eval "$testInfo"
|
||||
|
||||
for i in "${!drivers[@]}"; do
|
||||
echo "${drivers[$i]}"
|
||||
echo "${driverDrvs[$i]%^*}"
|
||||
done
|
||||
echo '::endgroup::'
|
||||
|
||||
if nix path-info --store "https://${cachixCache}.cachix.org" "${scenarioTests[@]}" &>/dev/null; then
|
||||
echo
|
||||
echo "All tests have already been built successfully:"
|
||||
@@ -32,6 +39,8 @@ if nix path-info --store "https://${cachixCache}.cachix.org" "${drivers[@]}" &>/
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo '::group::Build test drivers'
|
||||
|
||||
if [[ -v GITHUB_ACTIONS ]]; then
|
||||
# Avoid cachix warning message
|
||||
mkdir -p ~/.config/nix && touch ~/.config/nix/nix.conf
|
||||
|
||||
Reference in New Issue
Block a user