Fix C# test restore in Linux checks

This commit is contained in:
Nomads_Reach
2026-08-16 02:39:01 -04:00
parent 55b9c178b3
commit 6e2db7934c
+3 -8
View File
@@ -20,24 +20,19 @@ if grep -RInE --exclude-dir=.git --exclude='*.md' --exclude='PORT_TROUBLESHOOTIN
exit 1 exit 1
fi fi
echo "==> Checking start.sh line endings" echo "==> Checking shell scripts"
if LC_ALL=C grep -n $'\r' start.sh >/dev/null 2>&1; then if LC_ALL=C grep -n $'\r' start.sh >/dev/null 2>&1; then
echo "ERROR: start.sh contains CR/CRLF line endings" >&2 echo "ERROR: start.sh contains CR/CRLF line endings" >&2
exit 1 exit 1
fi fi
chmod +x start.sh fix-port.sh chmod +x start.sh fix-port.sh
test -x start.sh
bash -n start.sh bash -n start.sh
bash -n fix-port.sh bash -n fix-port.sh
if command -v shellcheck >/dev/null 2>&1; then shellcheck start.sh fix-port.sh; fi
if command -v shellcheck >/dev/null 2>&1; then
shellcheck start.sh fix-port.sh
fi
command -v dotnet >/dev/null 2>&1 || { echo "ERROR: dotnet SDK is required" >&2; exit 1; } command -v dotnet >/dev/null 2>&1 || { echo "ERROR: dotnet SDK is required" >&2; exit 1; }
dotnet --info dotnet --info
dotnet build CommonwealthOnline.Server.csproj -c Release --nologo dotnet build CommonwealthOnline.Server.csproj -c Release --nologo
dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release --no-restore dotnet run --project tests/CommonwealthOnline.Server.Tests.csproj -c Release
echo "All C# Linux compatibility checks passed." echo "All C# Linux compatibility checks passed."