Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EVM Tests #170

Merged
merged 13 commits into from
Nov 5, 2024
16 changes: 12 additions & 4 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ jobs:
with:
toolchain: 1.81.0
override: true


# We must install foundry in order to be able to test anvil
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install solc
run: |
sudo add-apt-repository ppa:ethereum/ethereum \
&& sudo apt-get update -y \
&& sudo apt-get install -y solc

# We need to setup node in order to compile the hardhat contracts to get the artifacts
- name: "Setup node"
uses: actions/setup-node@v2
Expand All @@ -41,6 +51,4 @@ jobs:
run: cd ./packages/ciphernode && cargo fmt -- --check

- name: Run tests
run: |
cd ./packages/ciphernode/
cargo test
run: "yarn ciphernode:test"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"ciphernode:lint": "cd packages/ciphernode && cargo fmt -- --check",
"ciphernode:add": "cd packages/evm && yarn ciphernode:add",
"ciphernode:remove": "cd packages/evm && yarn ciphernode:remove",
"ciphernode:test": "cd packages/ciphernode && cargo test",
"ciphernode:test": "cd packages/ciphernode && ./scripts/test.sh",
ryardley marked this conversation as resolved.
Show resolved Hide resolved
"ciphernode:build": "cd packages/ciphernode && cargo build --release",
"preciphernode:build": "yarn evm:compile",
"committee:new": "cd packages/evm && yarn committee:new",
Expand Down
Loading
Loading