name: PR Check (SDD Contract Gate) on: pull_request: branches: [ main ] paths: - 'spec/**/openapi.provider.yaml' - 'spec/**/openapi.deps.yaml' - 'src/**' jobs: contract-level-check: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Run OpenAPI Contract Level Check env: # For PRs targeting main, enforce provider >= L2 REQUIRE_PROVIDER_L2: "1" run: | chmod +x scripts/check-openapi-level.sh ./scripts/check-openapi-level.sh - name: YAML Lint (Optional) run: | # Simple check if yq or other linter is not available find spec -name "*.yaml" -o -name "*.yml" | xargs -I {} python3 -c "import yaml, sys; yaml.safe_load(open('{}'))" || echo "YAML check skipped or failed"