feat: add stronger State Integrity validation #6
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install package and test tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e . pytest | |
| - name: Run tests | |
| run: pytest -q | |
| - name: Exercise CLI snapshot | |
| run: sourceos-syncd health snapshot --compact > /tmp/sourceos-syncd.snapshot.json | |
| - name: Exercise CLI explain | |
| run: sourceos-syncd health explain --file examples/health/healthy.snapshot.json --compact | |
| - name: Exercise CLI verify | |
| run: sourceos-syncd health verify --file examples/health/healthy.snapshot.json --compact | |
| - name: Exercise repair plan preview | |
| run: sourceos-syncd repair plan --file examples/health/degraded.snapshot.json --compact > /tmp/sourceos-syncd.repair-plan.json |