Skip to content

Commit ea8c3c6

Browse files
committed
renamed and moved validator scripts
Signed-off-by: Alex Le <alex.le@improving.com>
1 parent f35f9fe commit ea8c3c6

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/check-csharp-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ jobs:
4444
4545
- name: Run C# Example Validation
4646
run: |
47-
python scripts/check_csharp_examples.py \
47+
python scripts/validators/check-csharp-examples.py \
4848
--validator valkey-glide-csharp/dev/scripts/validate_examples.py \
4949
--glide-dll valkey-glide-csharp/sources/Valkey.Glide/bin/Release/net8.0/Valkey.Glide.dll

.github/workflows/check-node-examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Node Examples
22

33
# Full-compilation validates the Node.js (TypeScript) code examples in the
44
# docs against the real @valkey/valkey-glide type definitions built from source.
5-
# See scripts/validators/node.py.
5+
# See scripts/validators/check-node-examples.py.
66

77
on:
88
pull_request:
@@ -57,4 +57,4 @@ jobs:
5757
python-version: "3.x"
5858

5959
- name: Validate Node examples
60-
run: python scripts/validators/node.py --glide-path valkey-glide/node
60+
run: python scripts/validators/check-node-examples.py --glide-path valkey-glide/node

scripts/check_csharp_examples.py renamed to scripts/validators/check-csharp-examples.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
4. Cleans up and propagates the exit code.
88
99
Usage:
10-
python scripts/check_csharp_examples.py
10+
python scripts/validators/check-csharp-examples.py
1111
--validator <path_to_validate_examples.py>
1212
--glide-dll <path_to_Valkey.Glide.dll>
1313
@@ -24,8 +24,9 @@
2424
import sys
2525
import tempfile
2626

27-
# Repository root is one level up from this script's directory (scripts/).
28-
_REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
27+
# Repository root is two levels up from this script's directory
28+
# (scripts/validators/).
29+
_REPO_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
2930
_DOCS_DIR = os.path.join(_REPO_ROOT, "src", "content", "docs")
3031

3132
# Matches a ```csharp ... ``` fenced code block, capturing the content.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Self-contained: no external Python dependencies beyond the standard library.
99
1010
Usage:
11-
python scripts/validators/node.py --glide-path ../valkey-glide/node
11+
python scripts/validators/check-node-examples.py --glide-path ../valkey-glide/node
1212
1313
Requires a pre-built Node client (run ``npm ci && npm run build:release``
1414
in the valkey-glide/node directory first).

0 commit comments

Comments
 (0)