first commit

This commit is contained in:
2025-04-04 08:46:42 +02:00
commit 0593328f7d
10 changed files with 186 additions and 0 deletions

22
entrypoint.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/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}"
log_info "Install cypress dependencies"
corepack enable --install-directory "/usr/local/bin/"
pnpm install
log_info "Running cypress cy:test"
npm run cy:test
mkdir -p "${GITHUB_WORKSPACE}/artifacts"
cp -r "${CY_ACTION_PATH}/cypress/e2e/__image_snapshots__/" "${GITHUB_WORKSPACE}/artifacts/"