#!/bin/bash
# Test GitHub workflow locally with Docker

docker run --rm -it \
  -v $(pwd):/workspace \
  -w /workspace \
  ubuntu:latest \
  bash -c "
    apt-get update && \
    apt-get install -y curl build-essential libdbus-1-dev libssl-dev capnproto pkg-config && \
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
    source \$HOME/.cargo/env && \
    cargo test --all-features
  "