87e68258

Author: Michael Lynch <git@mtlynch.io>

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

Fix check-frontend to pre-fetch npm deps with buildNpmPackage (#46)

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>

Reviewed-on: https://codeberg.org/mtlynch/go-app-starter/pulls/46
Co-authored-by: Michael Lynch <git@mtlynch.io>
Co-committed-by: Michael Lynch <git@mtlynch.io>

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 1s 1s 1s
Eval 2s 31s 31s 33s
Build 5s 3m37s 1m06s 1m12s
Test - - - -
Deploy - - - -
Suite 0s 4m11s 1m12s 1m12s

Timeline

0s10s20s30s40s50s1m1m10s