Skip to content

Commit f6e1ad7

Browse files
committed
Add unit tests from the original repository
- Currently the tests has a package reference to the NuGet release, so can't be used to test local code as of right now.
1 parent 2a0b742 commit f6e1ad7

File tree

8 files changed

+609
-3
lines changed

8 files changed

+609
-3
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Variables
3232
run: |
3333
ROCKSDBVNUM=`cat rocksdbversion`
34-
echo "ROCKSDBVERSION=$(cat rocksdbversion).2" >> $GITHUB_ENV
34+
echo "ROCKSDBVERSION=$(cat rocksdbversion).$(cat revision)" >> $GITHUB_ENV
3535
echo "ROCKSDBVERSIONBASE=$(cat rocksdbversion)" >> $GITHUB_ENV
3636
shell: bash
3737

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ The version of the NuGet package is set to follow the official RocksDB version,
5959

6060
This will install the managed library and the correct version of the unmanaged library depending on your operating system. The native 64-bit library is automatically built for each official RocksDB release, for Windows, Linux and MacOS, and is included in the package by default.
6161

62-
### Background
62+
## Releases
63+
64+
To make a new release, edit the "revision" file and commit to trigger a build that will produce a new release. Download the release artefact, verify locally, then publish the release, which will automatically publish to NuGet.org.
65+
66+
## Background
6367

6468
This library is based upon a fork of the original work by [warrenfalk](https://github.com/warrenfalk) and [theolivenbaum](https://github.com/theolivenbaum)
6569

@@ -69,6 +73,6 @@ https://github.com/warrenfalk/rocksdb-sharp
6973

7074
https://github.com/curiosity-ai/rocksdb-sharp
7175

72-
### License
76+
## License
7377

7478
[BSD 2-Clause License](LICENSE)

revision

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3

tests/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Testing
2+
3+
As of right now, these tests relies on the NuGet published package. That means you can't test your changes if you are doing any
4+
changes to the code generation scripts and templates.

0 commit comments

Comments
 (0)