Skip to content

Commit 5ab341d

Browse files
author
Lucas Yoon
committed
testing7
1 parent e6f4770 commit 5ab341d

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
repository: devfile/registry
2727
path: registry
2828

29-
# - name: Setup test environment with overrides
30-
# run: |
31-
# # Create the expected directory structure for validation
32-
# mkdir -p registry/tests/sample-stack
33-
# cp current-repo/devfile.yaml registry/tests/sample-stack/
34-
# cp -r current-repo/* registry/tests/sample-stack/ 2>/dev/null || true
29+
- name: Setup test environment with overrides
30+
run: |
31+
# Create the expected directory structure for validation
32+
mkdir -p registry/tests/sample-stack
33+
cp current-repo/devfile.yaml registry/tests/sample-stack/
34+
cp -r current-repo/* registry/tests/sample-stack/ 2>/dev/null || true
3535
36-
# # Create a simple get_stacks.sh that returns our sample directory
37-
# mkdir -p registry/tests/tests
38-
# echo '#!/bin/bash' > registry/tests/tests/get_stacks.sh
39-
# echo 'echo "sample-stack"' >> registry/tests/tests/get_stacks.sh
40-
# chmod +x registry/tests/tests/get_stacks.sh
36+
# Create a simple get_stacks.sh that returns our sample directory
37+
mkdir -p registry/tests/tests
38+
echo '#!/bin/bash' > registry/tests/tests/get_stacks.sh
39+
echo 'echo "sample-stack"' >> registry/tests/tests/get_stacks.sh
40+
chmod +x registry/tests/tests/get_stacks.sh
4141
4242
- name: Setup Go
4343
uses: actions/setup-go@v4
@@ -63,15 +63,14 @@ jobs:
6363
YQ_PATH: "yq"
6464
ENV: "minikube"
6565
run: |
66-
# cd registry/tests
6766
6867
echo "=== Schema Validation ==="
6968
# Use the registry's validate_devfile_schemas.sh script
7069
bash registry/tests/validate_devfile_schemas.sh --stacksPath ${{ github.workspace }}/current-repo --stackDirs "."
7170
7271
echo "=== ODO v3 Validation ==="
7372
# Use the registry's check_odov3.sh script
74-
bash check_odov3.sh --stacksPath ${{ github.workspace }}/current-repo --stackDirs "."
73+
bash registry/tests/check_odov3.sh --stacksPath ${{ github.workspace }}/current-repo --stackDirs "."
7574
7675
- name: Cleanup
7776
if: always()

0 commit comments

Comments
 (0)