Skip to content

Commit 2e8f966

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

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,24 @@ jobs:
2929

3030
- name: Setup test environment with overrides
3131
run: |
32+
# Create test staging area and copy devfile
3233
mkdir -p test-sample
3334
cp current-repo/devfile.yaml test-sample/
35+
36+
# Ensure ALL registry test files are available and properly staged
37+
echo "Staging all registry test files..."
38+
mkdir -p test-environment/tests
39+
cp -r registry/tests/* test-environment/tests/
40+
41+
# Apply local test overrides if they exist
3442
if [ -d "current-repo/tests" ]; then
3543
echo "Found local test overrides, applying them..."
36-
cp -r current-repo/tests/* registry/tests/ 2>/dev/null || true
44+
echo "Files that may be overwritten: validate_devfile_schemas.sh, check_non_terminating.sh, check_odov3.sh"
45+
cp -r current-repo/tests/* test-environment/tests/ 2>/dev/null || true
3746
fi
47+
48+
# Copy the staged test files back to registry/tests for execution
49+
cp -r test-environment/tests/* registry/tests/
3850
3951
- name: Setup Go
4052
uses: actions/setup-go@v4

tests/validate_devfile_schemas.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44

55
# Path to the devfile in this sample repository
66
SAMPLE_PATH="$(pwd)"
7-
DEVFILE_PATH="$SAMPLE_PATH/devfile.yaml"
7+
DEVFILE_PATH=${DEVFILE_PATH:-"$SAMPLE_PATH/devfile.yaml"}
88

99
# Path to the devfile/registry repository (assumed to be cloned as a sibling)
1010
REGISTRY_PATH=${REGISTRY_PATH:-"../registry"}

0 commit comments

Comments
 (0)