Use published client #2
This file contains 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: "test" | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v25 | |
with: | |
install_url: https://releases.nixos.org/nix/nix-2.20.4/install | |
extra_nix_config: | | |
experimental-features = flakes nix-command | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: holochain-ci | |
- name: Lint | |
run: | | |
nix develop --command bash -c "cargo clippy --all-targets --all-features -- -D warnings" | |
- name: Check formatting | |
run: | | |
nix develop --command bash -c "cargo fmt --all -- --check" | |
- name: Unit tests | |
run: | | |
nix develop --command bash -c "cargo test" | |
- name: Smoke test | |
run: | | |
# Start a sandbox conductor and run it in the background | |
nix develop --command bash -c "hc s clean && echo "1234" | hc s --piped create && echo "1234" | hc s --piped -f 8888 run &" | |
# Run a single scenario for 5 seconds | |
nix develop --command bash -c "RUST_LOG=info cargo run --package zome_call_single_value -- --connection-string ws://localhost:8888 --duration 5 --no-progress" |