mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00

Add shellcheck to CI pipeline to ensure shell scripts follow best practices and catch common errors. Fix existing shellcheck warnings in test scripts to pass the new linting requirements.
17 lines
447 B
Bash
Executable File
17 lines
447 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This runs a single test case from the host (not from Docker itself). The
|
|
# arguments are the same as run.sh but this wraps it in docker.
|
|
|
|
DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
|
|
IMAGE=$(docker build --file ${DIR}/Dockerfile -q ${DIR})
|
|
|
|
docker run \
|
|
--init \
|
|
--rm \
|
|
-v ${DIR}:/src \
|
|
--entrypoint "xvfb-run" \
|
|
$IMAGE \
|
|
--server-args="-screen 0, 1600x900x24" \
|
|
/entrypoint.sh "$@"
|