Skip to content

Commit c618ad1

Browse files
author
Lucas Yoon
committed
add path
1 parent 2e8f966 commit c618ad1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/validate-with-registry.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ jobs:
2929

3030
- name: Setup test environment with overrides
3131
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
3334
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/)"
3538
3639
# Ensure ALL registry test files are available and properly staged
3740
echo "Staging all registry test files..."
@@ -47,6 +50,11 @@ jobs:
4750
4851
# Copy the staged test files back to registry/tests for execution
4952
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/
5058
5159
- name: Setup Go
5260
uses: actions/setup-go@v4
@@ -81,8 +89,7 @@ jobs:
8189
echo "Registry path: $REGISTRY_PATH"
8290
echo "Sample path: $SAMPLE_PATH"
8391
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/)"
8693
8794
echo "=== Schema Validation ==="
8895
cd registry/tests

0 commit comments

Comments
 (0)