@@ -28,20 +28,11 @@ jobs:
2828
2929 - name : Setup test environment with overrides
3030 run : |
31- # Copy our devfile and related files into the registry test structure
3231 mkdir -p registry/stacks/python-basic
3332 cp current-repo/devfile.yaml registry/stacks/python-basic/
3433 cp current-repo/deploy.yaml registry/stacks/python-basic/
3534 cp current-repo/app.py registry/stacks/python-basic/
3635 cp current-repo/requirements.txt registry/stacks/python-basic/
37-
38- # Copy the entire docker directory if it exists
39- if [ -d "current-repo/docker" ]; then
40- cp -r current-repo/docker registry/stacks/python-basic/
41- fi
42-
43- echo "=== Registry stacks structure ==="
44- ls -la registry/stacks/python-basic/
4536
4637 - name : Setup Go
4738 uses : actions/setup-go@v4
@@ -67,37 +58,16 @@ jobs:
6758 YQ_PATH : " yq"
6859 ENV : " minikube"
6960 run : |
70- echo "=== Current Working Directory ==="
71- pwd
72- echo "=== Registry Directory Contents ==="
73- ls -la registry/
74- echo "=== Registry Tests Directory ==="
75- ls -la registry/tests/ || echo "Registry tests directory not found"
76-
77- echo "=== Schema Validation ==="
78- # Change to registry directory and run the validation tests
7961 cd registry
80-
81- # Run the registry's built-in validation
82- if [ -f "tests/validate_devfile_schemas.sh" ]; then
83- echo "Running devfile schema validation..."
84- bash tests/validate_devfile_schemas.sh --stacksPath stacks --stackDirs python-basic
85- else
86- echo "Schema validation script not found, running basic validation..."
87- # Try to run any available Go tests
88- if [ -d "tests" ]; then
89- cd tests
90- go test ./... -v || echo "Go tests not available"
91- fi
92- fi
93-
94- echo "=== Basic Devfile Validation ==="
95- # Use yq to validate YAML syntax and structure
96- yq eval '.schemaVersion' stacks/python-basic/devfile.yaml
97- yq eval '.metadata.name' stacks/python-basic/devfile.yaml
98-
99- echo "=== Deployment YAML Validation ==="
100- yq eval '.kind' stacks/python-basic/deploy.yaml
62+
63+ echo "=== Schema Validation ==="
64+ bash tests/validate_devfile_schemas.sh --stacksPath stacks --stackDirs python-basic
65+
66+ echo "=== Check ODO v3 ==="
67+ bash tests/check_odov3.sh --stacksPath ${{ github.workspace }}/current-repo --stackDirs "."
68+
69+ echo "=== Check Non-Terminating ==="
70+ bash tests/check_non_terminating.sh --stacksPath ${{ github.workspace }}/current-repo --stackDirs "."
10171
10272 - name : Cleanup
10373 if : always()
0 commit comments