Contract Status #856
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Contract Status | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "*/30 * * * *" | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| contract-status: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Probe live contract and generate evidence | |
| run: python3 scripts/contract_probe.py | |
| - name: Validate generated JSON | |
| run: | | |
| python3 -m json.tool evidence/current/contract-status.json >/dev/null | |
| python3 -m json.tool badges/healthz.json >/dev/null | |
| python3 -m json.tool badges/readyz.json >/dev/null | |
| python3 -m json.tool badges/version.json >/dev/null | |
| python3 -m json.tool badges/openapi.json >/dev/null | |
| python3 -m json.tool badges/contract.json >/dev/null | |
| - name: Upload contract evidence | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: contract-status | |
| path: | | |
| evidence/current/contract-status.json | |
| badges/*.json |