File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Setup test environment with overrides
31
31
run : |
32
- # Create test staging area and copy devfile
32
+ # Create test staging area and copy ENTIRE project (not just devfile)
33
+ # This ensures referenced files like deploy.yaml, docker/Dockerfile are available
33
34
mkdir -p test-sample
34
- cp current-repo/devfile.yaml test-sample/
35
+ cp -r current-repo/* test-sample/
36
+ echo "Copied entire project to test-sample for devfile validation"
37
+ echo "Project files available: $(ls -la test-sample/)"
35
38
36
39
# Ensure ALL registry test files are available and properly staged
37
40
echo "Staging all registry test files..."
47
50
48
51
# Copy the staged test files back to registry/tests for execution
49
52
cp -r test-environment/tests/* registry/tests/
53
+
54
+ # CRITICAL: Copy entire project to registry/tests for schema validation
55
+ # The schema validation runs from registry/tests/ and expects files relative to devfile
56
+ echo "Copying entire project to registry/tests for schema validation..."
57
+ cp -r test-sample/* registry/tests/
50
58
51
59
- name : Setup Go
52
60
uses : actions/setup-go@v4
81
89
echo "Registry path: $REGISTRY_PATH"
82
90
echo "Sample path: $SAMPLE_PATH"
83
91
echo "Devfile location: $(ls -la test-sample/)"
84
-
85
- cp test-sample/devfile.yaml registry/tests/devfile.yaml
92
+ echo "Registry/tests contents: $(ls -la registry/tests/)"
86
93
87
94
echo "=== Schema Validation ==="
88
95
cd registry/tests
You can’t perform that action at this time.
0 commit comments