deac60d1

By: Michael Lynch <git@mtlynch.io>

Fix check-frontend to pre-fetch npm deps with buildNpmPackage

The previous mkBuildStep ran `npm install` at build time, which silently
failed because there is no network access in the Nix sandbox. The frontend
checks appeared to pass but never actually ran.

Switch to buildNpmPackage so npm dependencies are fetched in a
fixed-output derivation. Extract npmDepsHash as a shared variable used by
both check-frontend and e2e-tests.

Co-authored-by: Shelley <shelley@exe.dev>

Suite timing

Time to Start Worker time Duration Time to finish
Config 3s 1s 1s 5s
Eval 2m32s 32s 32s 3m04s
Build 11m43s 2m42s - -
Test - - - -
Deploy - - - -
Suite 3s 3m16s - -

Timeline

0s2m40s2m50s3m11m50s12m12m10s12m30s12m40s12m50s13m13m10s13m20s