-
Notifications
You must be signed in to change notification settings - Fork 212
Expand file tree
/
Copy pathaction.yml
More file actions
34 lines (28 loc) · 1013 Bytes
/
action.yml
File metadata and controls
34 lines (28 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: e2e_validate_generated_app
inputs:
PROJECT_KEY:
description: Project key to specify project to validate ("retail-app-demo", "retail-app-ext" or "retail-app-no-ext")
required: true
type: string
TEMPLATE_VERSION:
description: Version of the template to use for the project
required: true
type: string
runs:
using: composite
steps:
- name: Validate generated project
run: |
set -euo pipefail
COMMAND=(node e2e/scripts/validate-generated-project.js "${{ inputs.PROJECT_KEY }}")
if [[ -n "${{ inputs.TEMPLATE_VERSION }}" ]]; then
COMMAND+=(--templateVersion "${{ inputs.TEMPLATE_VERSION }}")
fi
echo "Executing command: ${COMMAND[*]}"
if ! "${COMMAND[@]}"; then
echo "❌ Node.js validation script failed with exit code $?"
echo "::error::Validation of generated project failed"
exit 1
fi
echo "✅ Project validation completed successfully"
shell: bash