Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-if committed Oct 23, 2024
1 parent e43cb00 commit e7d8554
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .github/workflows/rust_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:
- ".cargo/**"
- "Cargo*"
push:
branches:
- master
paths:
- "benchmarks/**"
- "ironfish-mpc/**"
Expand Down Expand Up @@ -87,6 +85,10 @@ jobs:
ironfish_rust:
name: Test ironfish-rust
runs-on: ubuntu-latest
strategy:
matrix:
shard: [1/2, 2/2]

steps:
- uses: actions/checkout@v4

Expand All @@ -95,20 +97,34 @@ jobs:
with:
shared-key: base

# Run tests to collect code coverage
- name: Run cargo-tarpaulin on ironfish-rust
- name: install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Run tests
run: |
wget -O tarpaulin.tar.gz https://github.com/xd009642/tarpaulin/releases/download/0.22.0/cargo-tarpaulin-0.22.0-travis.tar.gz
tar -xzf tarpaulin.tar.gz
mv cargo-tarpaulin ~/.cargo/bin/
cargo tarpaulin -p ironfish --release --out Xml --avoid-cfg-tarpaulin --skip-clean --timeout 300 -- --test-threads 1
# ~/.cargo/bin/cargo-nextest nextest run --release --partition count:${{ matrix.shard }}
# cargo nextest run --release --partition count:${{ matrix.shard }}
cargo llvm-cov nextest --release --partition count:${{matrix.shard }}
# Upload code coverage to Codecov
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
flags: ironfish-rust
# Run tests to collect code coverage
# - name: Run cargo-tarpaulin on ironfish-rust
# run: |
# wget -O tarpaulin.tar.gz https://github.com/xd009642/tarpaulin/releases/download/0.22.0/cargo-tarpaulin-0.22.0-travis.tar.gz
# tar -xzf tarpaulin.tar.gz
# mv cargo-tarpaulin ~/.cargo/bin/
# cargo tarpaulin -p ironfish --release --out Xml --avoid-cfg-tarpaulin --skip-clean --timeout 300 -- --test-threads 2

# # Upload code coverage to Codecov
# - name: Upload to codecov.io
# uses: codecov/codecov-action@v4
# with:
# token: ${{secrets.CODECOV_TOKEN}}
# flags: ironfish-rust

ironfish_zkp:
name: Test ironfish-zkp
Expand Down
2 changes: 2 additions & 0 deletions ironfish-rust-nodejs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ pub mod signal_catcher;
pub mod structs;
pub mod xchacha20poly1305;

// trigger rust tests

#[cfg(feature = "stats")]
pub mod stats;

Expand Down

0 comments on commit e7d8554

Please sign in to comment.