check / check (push) Waiting to run
The pages' Content-Security-Policy forbids eval, which the standard Alpine.js build needs, so no directive ran: add forms showed open and events never collapsed. 3p/ now holds the @alpinejs/csp 3.14.9 tarball instead, and every directive in templates/ names a property or method of a component registered in static/js/app.js, as that build requires. The policy is unchanged. A browser test in internal/server, built only with the browser tag, loads the webhook page and the event log under the real headers. make test-browser runs it in Docker, in a digest-pinned headless browser image (Dockerfile.browser). Model: opus-5-5
24 lines
666 B
Bash
Executable File
24 lines
666 B
Bash
Executable File
#!/bin/sh
|
|
# script/test-browser: run the browser test in internal/server. It runs in
|
|
# Docker: Dockerfile.browser builds the test and runs it in a digest-pinned
|
|
# headless browser image, so the host needs no browser.
|
|
#
|
|
# --no-cache-filter=browser runs the test again even when nothing changed;
|
|
# it must name the stage in Dockerfile.browser that runs it.
|
|
# --output=type=cacheonly leaves no image behind to clean up.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
docker build \
|
|
-f Dockerfile.browser \
|
|
--no-cache-filter=browser \
|
|
--progress=plain \
|
|
--output=type=cacheonly \
|
|
.
|
|
}
|
|
|
|
main "$@"
|