Skip to content
Closed
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
51 changes: 42 additions & 9 deletions .github/workflows/auctoriseal-ci.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,58 @@
name: auctoriseal-ci

on:
workflow_dispatch:
pull_request:
push:
branches: [ main ]

permissions:
contents: read

jobs:
build_test:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- uses: actions/setup-python@v5
with:
node-version: 20
- name: Build
python-version: "3.11"

- name: Protocol gates
shell: bash
run: |
set -euo pipefail
node -v
npm -v || true
npm run build
- name: Test
test -f protocol/protocol.md
test -f protocol/seal.schema.json
test -f protocol/authority.schema.json
test -f protocol/revocation.schema.json
python3 - <<'PY'
import json, pathlib
req = [
"protocol/seal.schema.json",
"protocol/authority.schema.json",
"protocol/revocation.schema.json",
"protocol/envelope.schema.json",
"protocol/error.schema.json",
]
for p in req:
fp = pathlib.Path(p)
if not fp.exists():
raise SystemExit(f"E_MISSING_{p}")
json.loads(fp.read_text(encoding="utf-8"))
print("OK: schemas parse")
PY

- name: Install test deps
shell: bash
run: |
set -euo pipefail
python3 -m pip install --upgrade pip
python3 -m pip install pytest

- name: Pytest
shell: bash
run: |
set -euo pipefail
npm run test
python3 -m pytest -q