Skip to content

Commit 3bce22e

Browse files
committed
Check if config is correct before running
1 parent cb5b3cc commit 3bce22e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tasks/test.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33

44
#!/bin/bash
55

6-
set -euxo pipefail
6+
set -eo pipefail
7+
8+
if [ -z "${POSTGRES_VERSION}" ]; then
9+
echo "error: POSTGRES_VERSION not set"
10+
echo "Please re-run with a version set:"
11+
echo
12+
echo "POSTGRES_VERSION=16 mise run test"
13+
echo
14+
exit 1
15+
fi
16+
17+
set -ux
718

819
mise run build
920
mise run reset

0 commit comments

Comments
 (0)