Split docker build and test into separate scripts

This commit is contained in:
root
2026-02-26 13:36:12 +01:00
parent fcf44df4ad
commit d4dc0143d4
3 changed files with 17 additions and 3 deletions

15
scripts/docker/test.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
IMAGE="${DOTNET_IMAGE:-mcr.microsoft.com/dotnet/sdk:10.0}"
docker run --rm \
-v "${ROOT_DIR}:/workspace" \
-w /workspace \
"${IMAGE}" \
bash -lc "
set -euo pipefail
dotnet test DynamORM.Tests/DynamORM.Tests.csproj -c Release
"