We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0914e7 commit 73a959aCopy full SHA for 73a959a
.github/npm_test_integration.sh
@@ -3,9 +3,11 @@ set -euo pipefail
3
OUR_NIX=$(readlink -f $(which nix))
4
OUR_NIX_PARENT=$(dirname $OUR_NIX)
5
TEE=$(which tee)
6
+PYTHON=$(which python)
7
OLD_PATH=$PATH
8
export PATH=$OUR_NIX_PARENT
-$OUR_NIX develop .#forNpmTesting --command npm run test:integration "$@" 2>&1 | $TEE output.log
9
+UVICORN_PORT=$($PYTHON -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()')
10
+UVICORN_PORT=$UVICORN_PORT $OUR_NIX develop .#forNpmTesting --command npm run test:integration "$@" 2>&1 | $TEE output.log
11
export PATH=$OLD_PATH
12
PLAYWRIGHT_EXIT_CODE=$?
13
if grep -q -e "Error: A snapshot doesn't exist at" -e "Screenshot comparison failed" output.log; then
0 commit comments