first commit
This commit is contained in:
23
entrypoint.sh
Normal file
23
entrypoint.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user