File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1- name : Validate SumoLogic Queries
2- on : [pull_request, push]
1+ name : Validate SQL Queries
2+ on :
3+ pull_request :
4+ paths :
5+ - ' docs/**/*.md' # Only trigger when documentation changes
6+ - ' scripts/validate_*.py' # Or when validation scripts change
37
48jobs :
59 validate-queries :
610 runs-on : ubuntu-latest
711 steps :
812 - uses : actions/checkout@v4
913 with :
10- fetch-depth : 0 # Required for git diff
14+ fetch-depth : 0 # Required for git diff detection
1115
1216 - name : Debug filesystem
17+ if : ${{ always() }}
1318 run : |
14- echo "Current directory: $(pwd) "
19+ echo "Workspace contents: "
1520 ls -R
16- echo "Checking scripts directory:"
17- ls -la scripts/ || echo "No scripts directory found"
21+ echo "Scripts directory:"
22+ ls -la scripts/
1823
1924 - name : Set up Python
2025 uses : actions/setup-python@v4
@@ -24,14 +29,14 @@ jobs:
2429 - name : Install dependencies
2530 run : pip install requests pyyaml
2631
27- - name : Run validation
32+ - name : Validate queries
2833 env :
2934 SUMO_LOGIC_ACCESS_ID : ${{ secrets.SUMO_LOGIC_ACCESS_ID }}
3035 SUMO_LOGIC_ACCESS_KEY : ${{ secrets.SUMO_LOGIC_ACCESS_KEY }}
3136 run : |
3237 if [ -f "scripts/validate_queries.py" ]; then
3338 python scripts/validate_queries.py
3439 else
35- echo "::error::Script not found at scripts/validate_queries.py"
40+ echo "::error file=.github/workflows/validate_queries.yml::Validation script not found at scripts/validate_queries.py"
3641 exit 1
3742 fi
You can’t perform that action at this time.
0 commit comments