Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,28 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Checkout spec repository
- name: Checkout intentproof-tools (SPEC_REF source)
uses: actions/checkout@v4
with:
repository: IntentProof/intentproof-spec
repository: IntentProof/intentproof-tools
ref: main
path: intentproof-tools

- name: Read pinned spec ref
id: spec_ref
run: |
ref="$(tr -d '[:space:]' < intentproof-tools/SPEC_REF)"
if ! echo "$ref" | grep -qE '^[0-9a-f]{40}$'; then
echo "Invalid SPEC_REF in intentproof-tools: '$ref'" >&2
exit 1
fi
echo "ref=$ref" >> "$GITHUB_OUTPUT"

- name: Checkout intentproof-spec at pinned ref
uses: actions/checkout@v4
with:
repository: IntentProof/intentproof-spec
ref: ${{ steps.spec_ref.outputs.ref }}
path: intentproof-spec

- uses: actions/setup-python@v5
Expand All @@ -27,6 +44,11 @@ jobs:
- name: Install dependencies
run: pip install -e ".[dev]"

- name: Verify sdk-signing fixtures match pinned spec
env:
INTENTPROOF_SPEC_DIR: intentproof-spec
run: bash scripts/check-sdk-signing-fixtures-sync.sh

- name: Run tests
env:
INTENTPROOF_SPEC_DIR: intentproof-spec
Expand Down
Loading