Skip to content

Commit

Permalink
Make sure rocksdb tests are running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Aug 21, 2023
1 parent 6eb3072 commit 14ebb8c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-rocksdb-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,18 @@ jobs:
ROCKSDB_VERSION: v8.1.1
- name: build application
run: make build COSMOS_BUILD_OPTIONS=rocksdb
test:
runs-on: ubuntu-latest
steps:
- name: checkout repo from current commit
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
check-latest: true
cache: true
- name: run unit tests
run: make test-rocksdb
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ test-e2e: docker-build
test:
@go test $$(go list ./... | grep -v 'contrib' | grep -v 'tests/e2e')

test-rocksdb:
@go test -tags=rocksdb ./cmd/kava/opendb

# Run cli integration tests
# `-p 4` to use 4 cores, `-tags cli_test` to tell go not to ignore the cli package
# These tests use the `kvd` or `kvcli` binaries in the build dir, or in `$BUILDDIR` if that env var is set.
Expand Down

0 comments on commit 14ebb8c

Please sign in to comment.