Files
cypress/entrypoint.sh
2025-04-06 09:50:40 +02:00

24 lines
351 B
Bash

#!/usr/bin/env bash
INPUT_BASE_URL=$baseUrl
set -e
CY_ACTION_PATH="/e2e"
cd "${CY_ACTION_PATH}"
export CYPRESS_BASE_URL="${INPUT_BASE_URL}"
if ! [[ -d "node_modules" ]]; then
log_info "$(red)Error: No node_modules found"
exit 1
fi
log_info "Install cypress binaries"
npx cypress install
log_info "Running cypress cy:test"
npm run cy:test