1010jobs :
1111 validate-devfile :
1212 runs-on : ubuntu-latest
13-
13+
1414 env :
1515 REGISTRY_PATH : ${{ github.workspace }}/registry
1616
2828
2929 - name : Setup test environment with overrides
3030 run : |
31- # Copy entire project for devfile validation
32- mkdir -p test-sample
33- cp -r current-repo/* test-sample/
34-
35- # Stage registry test files and apply local overrides
36- mkdir -p test-environment/tests
37- cp -r registry/tests/* test-environment/tests/
38-
39- if [ -d "current-repo/tests" ]; then
40- echo "Applying local test overrides..."
41- cp -r current-repo/tests/* test-environment/tests/ 2>/dev/null || true
42- fi
43-
44- # Copy staged files to execution location
45- cp -r test-environment/tests/* registry/tests/
46- cp -r test-sample/* registry/tests/
31+ # Copy devfile to registry tests directory for validation
32+ cp current-repo/devfile.yaml registry/tests/
4733
4834 - name : Setup Go
4935 uses : actions/setup-go@v4
@@ -70,16 +56,15 @@ jobs:
7056 YQ_PATH : " yq"
7157 ENV : " minikube"
7258 run : |
73- cd registry/tests/check_non_terminating
74- go build -o flatten-parent .
75- cd ../../..
59+ cd registry/tests
7660
7761 echo "=== Schema Validation ==="
78- cd registry/tests
79- bash validate_devfile_schemas.sh
62+ # Run schema validation directly on the devfile
63+ yq eval 'true' devfile.yaml > /dev/null || (echo "Invalid YAML in devfile" && exit 1)
8064
81- echo "=== Non-terminating Test ==="
82- bash check_non_terminating.sh
65+ echo "=== ODO v3 Validation ==="
66+ # Use the updated script that accepts input files directly
67+ bash check_odov3.sh --stacksPath $(pwd) --stackDirs "."
8368
8469 - name : Cleanup
8570 if : always()
0 commit comments