docs: update badges #14
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: Architon Example | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| architon: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| - name: Install rv | |
| run: go install ./cmd/rv | |
| - name: Scan clean fixture | |
| shell: bash | |
| run: | | |
| rv scan internal/importers/kicad/testdata/bom_minimal.csv \ | |
| --format json \ | |
| --out architon-clean-report.json \ | |
| | tee architon-clean-ci.json | |
| grep -q '"report_version": "1"' architon-clean-ci.json | |
| grep -q '"violations": 0' architon-clean-ci.json | |
| grep -q '"warnings": 0' architon-clean-ci.json | |
| - name: Scan expected violation fixture | |
| shell: bash | |
| run: | | |
| set +e | |
| rv scan testdata/esp32_overvoltage/netlist.net \ | |
| --meta testdata/esp32_overvoltage/meta.yaml \ | |
| --format github \ | |
| --out architon-violation-report.json \ | |
| | tee architon-violation-annotations.txt | |
| scan_status=${PIPESTATUS[0]} | |
| set -e | |
| if [ "$scan_status" -ne 2 ]; then | |
| echo "expected rv scan to exit 2 for the overvoltage fixture, got $scan_status" | |
| exit 1 | |
| fi | |
| grep -q '::error title=ARCHITON CONTRACT VIOLATION::' architon-violation-annotations.txt | |
| grep -q 'contract_id=ESP32-WROOM-32' architon-violation-annotations.txt | |
| grep -q 'component=U1' architon-violation-annotations.txt | |
| grep -q 'net=/+5V' architon-violation-annotations.txt | |
| - name: Upload Architon reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: architon-reports | |
| path: | | |
| architon-*-report.json | |
| architon-*-ci.json | |
| architon-*-annotations.txt | |
| if-no-files-found: ignore |