#!/bin/bash # Fail the build on any error set -eou pipefail echo "--- Run unit tests" npm test echo "--- Verify lightgallery dependency is built in" grep \"lightgallery\" package.json 1>/dev/null echo "--- Comparing gallery snapshot" ./test-integration/test echo "================" echo "Build successful" echo "================"