File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 7070 - name : Run ledger tests
7171 run : make test-ledger
7272
73+ mina-node-native-tests :
74+ timeout-minutes : 30
75+ runs-on : ubuntu-24.04
76+ steps :
77+ - name : Git checkout
78+ uses : actions/checkout@v5
79+
80+ - name : Setup build dependencies
81+ uses : ./.github/actions/setup-build-deps
82+
83+ - name : Setup Rust
84+ uses : ./.github/actions/setup-rust
85+ with :
86+ toolchain : ${{ env.RUST_STABLE_VERSION }}
87+ cache-prefix : mina-node-native-${{ env.CACHE_VERSION }}
88+
89+ - name : Test mina-node-native crate
90+ run : make test-node-native
91+
7392 p2p-messages-tests :
7493 timeout-minutes : 20
7594 runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5555 wallets from the CLI. End-to-end tests are added in the CI and a new target
5656 ` make test-wallet ` has been added. This focuses on basic payments
5757 ([ #1543 ] ( https://github.com/o1-labs/mina-rust/pull/1543 ) )
58+ - ** Makefile** : add targets to only build and run tests of the package
59+ ` mina-node-native ` ([ #1549 ] ( https://github.com/o1-labs/mina-rust/pull/1549 ) )
60+ - ** CI** : add a step in tests to run the unit/integration tests of the package
61+ ` mina-node-native ` ([ #1549 ] ( https://github.com/o1-labs/mina-rust/pull/1549 ) )
5862
5963### Changed
6064
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ build: ## Build the project in debug mode
6767build-ledger : download-circuits # # Build the ledger binary and library, requires nightly Rust
6868 @cd ledger && cargo +$(NIGHTLY_RUST_VERSION ) build --release --tests
6969
70+ build-node-native : # # Build the package mina-node-native with all features and tests
71+ @cargo build -p mina-node-native --all-features --release --tests
72+
7073.PHONY : build-release
7174build-release : # # Build the project in release mode
7275 @cargo build --release --package=cli --bin mina
@@ -322,6 +325,10 @@ test-wallet: ## Run wallet CLI end-to-end tests
322325test-p2p-messages :
323326 cargo test -p mina-p2p-messages --tests --release
324327
328+ .PHONY : test-node-native
329+ test-node-native : build-node-native # # Run the unit/integration tests of the package mina-node-native
330+ cargo test -p mina-node-native --all-features --release --tests
331+
325332.PHONY : nextest
326333nextest : # # Run tests with cargo-nextest for faster execution
327334 @cargo nextest run
You can’t perform that action at this time.
0 commit comments