18 lines
471 B
YAML
18 lines
471 B
YAML
|
|
version: "3"
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
test:
|
||
|
|
cmds:
|
||
|
|
- |
|
||
|
|
bash <<'EOF'
|
||
|
|
set -euo pipefail
|
||
|
|
source ../../_lib/run.sh
|
||
|
|
|
||
|
|
go build -trimpath -ldflags="-s -w" -o bin/core ../_harness
|
||
|
|
|
||
|
|
cd fixtures/project
|
||
|
|
output="$(mktemp)"
|
||
|
|
run_capture_stdout 1 "$output" ../../bin/core qa stan --json
|
||
|
|
jq -e '.tool == "phpstan" and .errors[0].file == "src/Bad.php" and .errors[0].line == 3' "$output" >/dev/null
|
||
|
|
EOF
|