Skip to content
Merged
Show file tree
Hide file tree
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: 51 additions & 0 deletions .github/workflows/wire.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Wire protocol

# views.rs is the single source of truth for every chi body and the
# envelope. These checks keep the generated client mirrors (TS/Python/Go)
# and the golden fixture byte-locked to it.

on:
push:
pull_request:

permissions:
contents: read

jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Every chi has a body view (fails the build otherwise)
run: cargo build -p thrum-core
- name: Generated mirrors are byte-identical to views.rs
run: cargo run -p codegen -- --check
- name: Codegen unit tests
run: cargo test -p codegen --lib
- name: Golden fixture round-trips through views
run: cargo test -p thrum-core

go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Golden-wire parse + rid parity
working-directory: thrum-clients/go
run: |
go build ./...
go vet ./...
go test ./...

python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Golden-wire parse + rid parity (stdlib only)
run: python -m unittest discover -s thrum-clients/python/tests
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ path = "src/main.rs"
[dependencies]
anyhow = { workspace = true }
regex = { workspace = true }
syn = { version = "2", features = ["full", "parsing"] }
Loading
Loading