ca0ac06e

By: Michael Lynch <git@mtlynch.io>

Avoid Playwright dependency in small Nix checks (#170)

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/little-moments/pulls/170

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 3s 3s 4s
Eval 2s 1m02s 1m02s 1m05s
Build 26s 4m59s 1m46s 2m12s
Test - - - -
Deploy - - - -
Suite 0s 6m05s 2m12s 2m12s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s1m40s