From a1aad227c158f12df6bea38bffa27890eb8fa0ef Mon Sep 17 00:00:00 2001 From: dimgigov Date: Thu, 7 May 2026 11:10:45 +0300 Subject: [PATCH] fix(ci): lower jwt requirement to >= 0.3.0 to match upstream repo version --- .github/workflows/ci.yml | 32 ++++++++++++++++++++------------ baradadb.nimble | 2 +- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3f6a26..ef5b672 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,18 +17,26 @@ jobs: with: nim-version: '2.2.10' - - name: Debug - run: | - which nim - nim --version - which nimble - nimble --version - nimble list -i - ls ~/.nimble/pkgs2/ 2>/dev/null | head -n 20 || true - echo "---" - nimble install --depsOnly -y 2>&1 | tail -n 30 - echo "---" - ls ~/.nimble/pkgs2/ 2>/dev/null | head -n 20 || true + - name: Install dependencies + run: nimble install --depsOnly -y - name: Run tests run: nim c -d:ssl --path:src -r tests/test_all.nim + + - name: Compile benchmarks + run: nim c -d:release benchmarks/bench_all.nim + + - name: Compile stress test + run: nim c -d:ssl --threads:on --path:src tests/stress_test.nim + + - name: Run stress test + run: ./tests/stress_test + + - name: Check for unused declarations and imports + run: | + nim c -d:ssl --path:src tests/test_all.nim 2>&1 | tee build.log || true + echo "--- Checking for XDeclaredButNotUsed hints ---" + grep -E "XDeclaredButNotUsed|UnusedImport" build.log | while read -r line; do + echo "::warning::$line" + done + echo "--- Done ---" diff --git a/baradadb.nimble b/baradadb.nimble index 8154e3c..398797a 100644 --- a/baradadb.nimble +++ b/baradadb.nimble @@ -10,7 +10,7 @@ binDir = "build" # Dependencies requires "nim >= 2.2.0" requires "hunos >= 1.2.0" -requires "jwt >= 2.1.0" +requires "jwt >= 0.3.0" requires "checksums >= 0.2.0" # Tasks