|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main, master, develop ] |
| 6 | + paths-ignore: |
| 7 | + - '**.md' |
| 8 | + - 'docs/**' |
| 9 | + pull_request: |
| 10 | + branches: [ main, master ] |
| 11 | + paths-ignore: |
| 12 | + - '**.md' |
| 13 | + - 'docs/**' |
| 14 | + |
| 15 | +jobs: |
| 16 | + batch-syntax-check: |
| 17 | + runs-on: windows-latest |
| 18 | + steps: |
| 19 | + - uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - name: Check batch file syntax |
| 22 | + shell: cmd |
| 23 | + run: | |
| 24 | + for /r %%f in (*.bat) do ( |
| 25 | + echo Checking syntax: %%f |
| 26 | + cmd /c "%%f" /? |
| 27 | + ) |
| 28 | + continue-on-error: true |
| 29 | + |
| 30 | + - name: Verify file structure |
| 31 | + shell: pwsh |
| 32 | + run: | |
| 33 | + $mainScript = "./src/core/ultimate-tools-SOTA2026.bat" |
| 34 | + if (Test-Path $mainScript) { |
| 35 | + Write-Host "✓ Main script exists: $mainScript" |
| 36 | + } else { |
| 37 | + Write-Error "Main script not found" |
| 38 | + exit 1 |
| 39 | + } |
| 40 | +
|
| 41 | + documentation-check: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + |
| 46 | + - name: Check README exists |
| 47 | + run: | |
| 48 | + test -f README.md || (echo "README.md is missing" && exit 1) |
| 49 | + echo "✓ README.md exists" |
| 50 | +
|
| 51 | + - name: Verify documentation completeness |
| 52 | + run: | |
| 53 | + grep -q "200\|tool\|menu" README.md && echo "✓ Features mentioned in README" |
| 54 | + grep -q "version\|3\.0\|SOTA" README.md && echo "✓ Version mentioned in README" |
| 55 | +
|
| 56 | + file-structure: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + steps: |
| 59 | + - uses: actions/checkout@v4 |
| 60 | + |
| 61 | + - name: Check directory structure |
| 62 | + run: | |
| 63 | + test -d src/core && echo "✓ src/core directory exists" |
| 64 | + test -d src/modules && echo "✓ src/modules directory exists" |
| 65 | + test -d src/utilities && echo "✓ src/utilities directory exists" |
| 66 | + test -d docs && echo "✓ docs directory exists" |
| 67 | + test -d logs && echo "✓ logs directory exists" || echo "⚠ logs directory will be created at runtime" |
| 68 | +
|
| 69 | + - name: Check batch file encoding |
| 70 | + run: | |
| 71 | + file src/core/*.bat | head -5 |
| 72 | + echo "✓ Batch files checked" |
0 commit comments