Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update READMEs #2

Merged
merged 2 commits into from
Feb 18, 2025
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
5 changes: 5 additions & 0 deletions .github/workflows/ci-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches:
- master


permissions:
checks: write
pull-requests: write

jobs:
devour-flake:
name: "Devour Flake"
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
# grapesy-etcd

Repository containing the [grapesy-etcd](grapesy-etcd/) client.
This repository contains a [grapesy](https://hackage.haskell.org/package/grapesy) client
for [etcd](http://etcd.io).

## Building
It is divided into two packages

* [grapesy-etcd](grapesy-etcd/) - Contains the library code and protocol buffer bindings, released to hackage under [grapesy-etcd](https://hackage.haskell.org/package/grapesy-etcd).
* [grapesy-etcd-testing](grapesy-etcd-testing) - Contains an executable (not cabal test) for running a test against a live etcd service.

## Development

Do this to get started.

```
nix develop
cabal build all
```

## Testing

Testing the must be done against a real etcd service, which is provided by a NixOS VM test in a flake check attribute. To run all of the tests, run

```
cabal run grapesy-etcd
nix flake check
```

You may run the test executable against a version of etcd installed on your host if you wish.
5 changes: 2 additions & 3 deletions grapesy-etcd-testing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# ChangeLog for grapesy-etc
# ChangeLog for grapesy-etc-testing

## 0.1.0

* Initial version of grapesy-etc client. Contains full bindings to the etcdv3 spec as defined in
rpc.proto.
* Initial version of grapesy-etc-testing client. Runs a non-streaming call to `put` and a bidirectional streaming call to `watch`.
4 changes: 2 additions & 2 deletions grapesy-etcd-testing/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# grapesy-etcd
# grapesy-etcd-testing

[grapesy](https://hackage.haskell.org/grapesy) client for [etcd](https://etcd.io/).
Testing client executable for [grapesy-etcd](https://hackage.haskell.org/package/grapesy-etcd).