From a6e3a715b4dcee8a492b34ee7c8ed2b287cbf1ed Mon Sep 17 00:00:00 2001 From: etimofeeva Date: Mon, 2 Feb 2026 11:31:28 +0100 Subject: [PATCH] fix: corrected rocks db version --- .github/workflows/ci.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c252329..dcd35cc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,19 +13,13 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '1.21' + - name: Build Docker image + run: make build-images - - name: Install system dependencies + - name: Run unit tests in Docker run: | - sudo apt-get update - sudo apt-get install -y librocksdb-dev libzmq3-dev pkg-config - - - name: Download dependencies - run: go mod download - - - name: Run unit tests - run: | - go test -tags 'unittest' $(go list ./... | grep -vP '^github.com/trezor/blockbook/(contrib|tests)') \ No newline at end of file + docker run --rm -v "$(pwd):/src" blockbook-build bash -c " + cd /src && + go mod download && + go test -tags 'unittest' \$(go list ./... | grep -vP '^github.com/trezor/blockbook/(contrib|tests)') + " \ No newline at end of file