From 6075e03d06148bbcf5f47159a7992be7d4f1c6b2 Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Wed, 17 Dec 2025 19:49:31 +0300 Subject: [PATCH] feat: more granular tests in CI --- .github/workflows/ci.yml | 44 +++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60b508a..6d8b3f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,11 +75,9 @@ jobs: RISC0_SKIP_BUILD: "1" run: cargo clippy -p "*programs" -- -D warnings - test: + unit-tests: runs-on: ubuntu-latest - timeout-minutes: 120 - - name: test + timeout-minutes: 60 steps: - uses: actions/checkout@v5 @@ -93,23 +91,49 @@ jobs: - name: Install nextest run: cargo install cargo-nextest - - name: Unit tests + - name: Run unit tests env: RISC0_DEV_MODE: "1" run: cargo nextest run --no-fail-fast + valid-proof-test: + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@v5 + + - uses: ./.github/actions/install-system-deps + + - uses: ./.github/actions/install-risc0 + + - name: Install active toolchain + run: rustup install + - name: Test valid proof env: - NSSA_WALLET_HOME_DIR: ./integration-tests/configs/debug/wallet + NSSA_WALLET_HOME_DIR: ./integration_tests/configs/debug/wallet RUST_LOG: "info" - run: cargo run --bin integration-tests -- ./integration-tests/configs/debug/ test_success_private_transfer_to_another_owned_account + run: cargo run --bin integration_tests -- ./integration_tests/configs/debug/ test_success_private_transfer_to_another_owned_account - - name: Integration tests + integration-tests: + runs-on: ubuntu-latest + timeout-minutes: 120 + steps: + - uses: actions/checkout@v5 + + - uses: ./.github/actions/install-system-deps + + - uses: ./.github/actions/install-risc0 + + - name: Install active toolchain + run: rustup install + + - name: Run integration tests env: - NSSA_WALLET_HOME_DIR: ./integration-tests/configs/debug/wallet + NSSA_WALLET_HOME_DIR: ./integration_tests/configs/debug/wallet RUST_LOG: "info" RISC0_DEV_MODE: "1" - run: cargo run --bin integration-tests -- ./integration-tests/configs/debug/ all + run: cargo run --bin integration_tests -- ./integration_tests/configs/debug/ all artifacts: runs-on: ubuntu-latest