661d1e40

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Avoid Playwright dependency in small Nix checks (#57)

The shared mkBuildStep wrapper exported PLAYWRIGHT_BROWSERS_PATH for every
check derivation. That embedded the Playwright browser store path into tiny
checks like check-trailing-newline, so Nix had to realize the full Playwright
browser closure before running a shell script that only needs Git, grep, and
coreutils.

Move the Playwright environment variables into the e2e-tests setup, which is
the only build step that needs browser binaries. This keeps the e2e behavior the
same while allowing checks such as nix build .#check-trailing-newline to avoid
downloading and building Playwright browsers and their large runtime closure.

Reviewed-on: https://codeberg.org/mtlynch/go-app-starter/pulls/57