mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-22 03:17:59 +00:00
Cleanup Repository & Fix CI (#211)
* Move all scripts to a single directory * Switch to cargo-make * Remove the polkadot-sdk from the submodules * WIP: update the CI * Add other jobs to CI * Overhaul the polkadot-sdk caching step * Add a testing step * Fix the CI * Install clang and llvm dependencies * Update the version of clang * Install llvm on macos * Fix ci * Fix ci * Use 1.90.0 version of rust for the polkadot-sdk * Fix CI * Fix CI * Fix CI * Fix CI * Fix CI * Allow warnings * Update runners * Update runners * Simplify CI * Update MacOS runner * Fix zombienet tests * Make cache step faster
This commit is contained in:
+138
-170
@@ -18,136 +18,95 @@ env:
|
|||||||
POLKADOT_VERSION: polkadot-stable2506-2
|
POLKADOT_VERSION: polkadot-stable2506-2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cache-polkadot:
|
machete:
|
||||||
name: Build and cache Polkadot binaries on ${{ matrix.os }}
|
name: Check for Unneeded Dependencies
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ubuntu-24.04
|
||||||
strategy:
|
env:
|
||||||
matrix:
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
os: [ubuntu-24.04, macos-14]
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo and submodules
|
- name: Checkout This Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- name: Run Sccache
|
||||||
- name: Install dependencies (Linux)
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
if: matrix.os == 'ubuntu-24.04'
|
- name: Install the Rust Toolchain
|
||||||
run: |
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
sudo apt-get update
|
- name: Install the Cargo Make Binary
|
||||||
sudo apt-get install -y protobuf-compiler clang libclang-dev
|
uses: davidB/rust-cargo-make@v1
|
||||||
rustup target add wasm32-unknown-unknown
|
- name: Run Cargo Machete
|
||||||
rustup component add rust-src
|
run: cargo make machete
|
||||||
|
check-fmt:
|
||||||
- name: Install dependencies (macOS)
|
name: Check Formatting
|
||||||
if: matrix.os == 'macos-14'
|
runs-on: ubuntu-24.04
|
||||||
run: |
|
env:
|
||||||
brew install protobuf
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
rustup target add wasm32-unknown-unknown
|
RUSTC_WRAPPER: "sccache"
|
||||||
rustup component add rust-src
|
steps:
|
||||||
|
- name: Checkout This Repository
|
||||||
- name: Cache binaries
|
uses: actions/checkout@v4
|
||||||
id: cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
with:
|
||||||
path: |
|
submodules: recursive
|
||||||
~/.cargo/bin/revive-dev-node
|
- name: Run Sccache
|
||||||
~/.cargo/bin/eth-rpc
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
key: polkadot-binaries-${{ matrix.os }}-${{ hashFiles('polkadot-sdk/.git') }}-with-dev-node
|
- name: Install the Rust Toolchain
|
||||||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
- name: Build revive-dev-node
|
- name: Install the Cargo Make Binary
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
uses: davidB/rust-cargo-make@v1
|
||||||
run: |
|
- name: Run Cargo Formatter
|
||||||
cd polkadot-sdk
|
run: cargo make fmt-check
|
||||||
cargo install --locked --force --profile=production --path substrate/frame/revive/dev-node/node --bin revive-dev-node
|
check-clippy:
|
||||||
|
name: Check Clippy Lints
|
||||||
- name: Build eth-rpc
|
runs-on: ubuntu-24.04
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
env:
|
||||||
run: |
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
cd polkadot-sdk
|
RUSTC_WRAPPER: "sccache"
|
||||||
cargo install --path substrate/frame/revive/rpc --bin eth-rpc
|
steps:
|
||||||
|
- name: Checkout This Repository
|
||||||
- name: Cache downloaded Polkadot binaries
|
uses: actions/checkout@v4
|
||||||
id: cache-polkadot
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
with:
|
||||||
path: |
|
submodules: recursive
|
||||||
~/polkadot-cache/polkadot
|
- name: Run Sccache
|
||||||
~/polkadot-cache/polkadot-execute-worker
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
~/polkadot-cache/polkadot-prepare-worker
|
- name: Install the Rust Toolchain
|
||||||
~/polkadot-cache/polkadot-parachain
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
key: polkadot-downloaded-${{ matrix.os }}-${{ env.POLKADOT_VERSION }}
|
- name: Install the Cargo Make Binary
|
||||||
|
uses: davidB/rust-cargo-make@v1
|
||||||
- name: Download Polkadot binaries on macOS
|
- name: Run Cargo Clippy
|
||||||
if: matrix.os == 'macos-14' && steps.cache-polkadot.outputs.cache-hit != 'true'
|
run: cargo make clippy
|
||||||
run: |
|
test:
|
||||||
mkdir -p ~/polkadot-cache
|
name: Unit Tests
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-aarch64-apple-darwin -o ~/polkadot-cache/polkadot
|
runs-on: ${{ matrix.os }}
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-execute-worker-aarch64-apple-darwin -o ~/polkadot-cache/polkadot-execute-worker
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-prepare-worker-aarch64-apple-darwin -o ~/polkadot-cache/polkadot-prepare-worker
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-parachain-aarch64-apple-darwin -o ~/polkadot-cache/polkadot-parachain
|
|
||||||
chmod +x ~/polkadot-cache/*
|
|
||||||
|
|
||||||
- name: Download Polkadot binaries on Ubuntu
|
|
||||||
if: matrix.os == 'ubuntu-24.04' && steps.cache-polkadot.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/polkadot-cache
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot -o ~/polkadot-cache/polkadot
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-execute-worker -o ~/polkadot-cache/polkadot-execute-worker
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-prepare-worker -o ~/polkadot-cache/polkadot-prepare-worker
|
|
||||||
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/${{ env.POLKADOT_VERSION }}/polkadot-parachain -o ~/polkadot-cache/polkadot-parachain
|
|
||||||
chmod +x ~/polkadot-cache/*
|
|
||||||
|
|
||||||
ci:
|
|
||||||
name: CI on ${{ matrix.os }}
|
|
||||||
needs: cache-polkadot
|
needs: cache-polkadot
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-24.04, macos-14]
|
os: [ubuntu-24.04, macos-14]
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
POLKADOT_SDK_COMMIT_HASH: "30cda2aad8612a10ff729d494acd9d5353294d63"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout This Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- name: Run Sccache
|
||||||
- name: Restore binaries from cache
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
uses: actions/cache@v3
|
- name: Install the Rust Toolchain
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/revive-dev-node
|
|
||||||
~/.cargo/bin/eth-rpc
|
|
||||||
key: polkadot-binaries-${{ matrix.os }}-${{ hashFiles('polkadot-sdk/.git') }}-with-dev-node
|
|
||||||
|
|
||||||
- name: Restore downloaded Polkadot binaries from cache
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/polkadot-cache/polkadot
|
|
||||||
~/polkadot-cache/polkadot-execute-worker
|
|
||||||
~/polkadot-cache/polkadot-prepare-worker
|
|
||||||
~/polkadot-cache/polkadot-parachain
|
|
||||||
key: polkadot-downloaded-${{ matrix.os }}-${{ env.POLKADOT_VERSION }}
|
|
||||||
|
|
||||||
- name: Install Polkadot binaries
|
|
||||||
run: |
|
|
||||||
sudo cp ~/polkadot-cache/polkadot /usr/local/bin/
|
|
||||||
sudo cp ~/polkadot-cache/polkadot-execute-worker /usr/local/bin/
|
|
||||||
sudo cp ~/polkadot-cache/polkadot-prepare-worker /usr/local/bin/
|
|
||||||
sudo cp ~/polkadot-cache/polkadot-parachain /usr/local/bin/
|
|
||||||
sudo chmod +x /usr/local/bin/polkadot*
|
|
||||||
|
|
||||||
- name: Setup Rust toolchain
|
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
rustflags: ""
|
target: "wasm32-unknown-unknown"
|
||||||
|
components: "rust-src,rust-std"
|
||||||
- name: Add wasm32 target and formatting
|
- name: Install the Cargo Make Binary
|
||||||
run: |
|
uses: davidB/rust-cargo-make@v1
|
||||||
rustup target add wasm32-unknown-unknown
|
- name: Caching Step
|
||||||
rustup component add rust-src rustfmt clippy
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/eth-rpc
|
||||||
|
~/.cargo/bin/revive-dev-node
|
||||||
|
key: polkadot-binaries-${{ env.POLKADOT_SDK_COMMIT_HASH }}-${{ matrix.os }}
|
||||||
- name: Install Geth on Ubuntu
|
- name: Install Geth on Ubuntu
|
||||||
if: matrix.os == 'ubuntu-24.04'
|
if: matrix.os == 'ubuntu-24.04'
|
||||||
run: |
|
run: |
|
||||||
@@ -161,7 +120,7 @@ jobs:
|
|||||||
# Ubuntu. Eventually, we found out that the last version of geth that worked in our CI was
|
# Ubuntu. Eventually, we found out that the last version of geth that worked in our CI was
|
||||||
# version 1.15.11. Thus, this is the version that we want to use in CI. The PPA sadly does
|
# version 1.15.11. Thus, this is the version that we want to use in CI. The PPA sadly does
|
||||||
# not have historic versions of Geth and therefore we need to resort to downloading pre
|
# not have historic versions of Geth and therefore we need to resort to downloading pre
|
||||||
# built binaries for Geth and the surrounding tools which is what the following parts of
|
# built binaries for Geth and the surrounding tools which is what the following parts of
|
||||||
# the script do.
|
# the script do.
|
||||||
|
|
||||||
sudo apt-get install -y wget ca-certificates tar
|
sudo apt-get install -y wget ca-certificates tar
|
||||||
@@ -180,7 +139,6 @@ jobs:
|
|||||||
curl -sL https://github.com/paritytech/revive/releases/download/v0.3.0/resolc-x86_64-unknown-linux-musl -o resolc
|
curl -sL https://github.com/paritytech/revive/releases/download/v0.3.0/resolc-x86_64-unknown-linux-musl -o resolc
|
||||||
chmod +x resolc
|
chmod +x resolc
|
||||||
sudo mv resolc /usr/local/bin
|
sudo mv resolc /usr/local/bin
|
||||||
|
|
||||||
- name: Install Geth on macOS
|
- name: Install Geth on macOS
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
run: |
|
run: |
|
||||||
@@ -192,69 +150,79 @@ jobs:
|
|||||||
curl -sL https://github.com/paritytech/revive/releases/download/v0.3.0/resolc-universal-apple-darwin -o resolc
|
curl -sL https://github.com/paritytech/revive/releases/download/v0.3.0/resolc-universal-apple-darwin -o resolc
|
||||||
chmod +x resolc
|
chmod +x resolc
|
||||||
sudo mv resolc /usr/local/bin
|
sudo mv resolc /usr/local/bin
|
||||||
|
|
||||||
- name: Install Kurtosis on macOS
|
- name: Install Kurtosis on macOS
|
||||||
if: matrix.os == 'macos-14'
|
if: matrix.os == 'macos-14'
|
||||||
run: brew install kurtosis-tech/tap/kurtosis-cli
|
run: brew install kurtosis-tech/tap/kurtosis-cli
|
||||||
|
|
||||||
- name: Install Kurtosis on Ubuntu
|
- name: Install Kurtosis on Ubuntu
|
||||||
if: matrix.os == 'ubuntu-24.04'
|
if: matrix.os == 'ubuntu-24.04'
|
||||||
run: |
|
run: |
|
||||||
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
|
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install kurtosis-cli
|
sudo apt install kurtosis-cli
|
||||||
|
- name: Run Tests
|
||||||
- name: Install cargo-machete
|
run: cargo make test
|
||||||
uses: clechasseur/rs-cargo@v2
|
cache-polkadot:
|
||||||
|
name: Build and Cache Polkadot Binaries on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-24.04, macos-14]
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: "true"
|
||||||
|
RUSTC_WRAPPER: "sccache"
|
||||||
|
RUSTFLAGS: "-Awarnings"
|
||||||
|
POLKADOT_SDK_COMMIT_HASH: "30cda2aad8612a10ff729d494acd9d5353294d63"
|
||||||
|
steps:
|
||||||
|
- name: Caching Step
|
||||||
|
id: cache-step
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
command: install
|
path: |
|
||||||
args: cargo-machete@0.7.0
|
~/.cargo/bin/eth-rpc
|
||||||
- name: Machete
|
~/.cargo/bin/revive-dev-node
|
||||||
run: cargo machete crates
|
key: polkadot-binaries-${{ env.POLKADOT_SDK_COMMIT_HASH }}-${{ matrix.os }}
|
||||||
|
- name: Checkout the Polkadot SDK Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
if: steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
with:
|
||||||
|
repository: paritytech/polkadot-sdk
|
||||||
|
ref: ${{ env.POLKADOT_SDK_COMMIT_HASH }}
|
||||||
|
submodules: recursive
|
||||||
|
- name: Run Sccache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.9
|
||||||
|
if: steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
- name: Install the Rust Toolchain
|
||||||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
if: steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
with:
|
||||||
|
target: "wasm32-unknown-unknown"
|
||||||
|
components: "rust-src"
|
||||||
|
toolchain: "1.90.0"
|
||||||
|
|
||||||
- name: Format
|
- name: Install dependencies (Linux)
|
||||||
run: make format
|
if: matrix.os == 'ubuntu-24.04' && steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
- name: Clippy
|
|
||||||
run: make clippy
|
|
||||||
|
|
||||||
- name: Check revive-dev-node version
|
|
||||||
run: revive-dev-node --version
|
|
||||||
|
|
||||||
- name: Check eth-rpc version
|
|
||||||
run: eth-rpc --version
|
|
||||||
|
|
||||||
- name: Check resolc version
|
|
||||||
run: resolc --version
|
|
||||||
|
|
||||||
- name: Check polkadot version
|
|
||||||
run: polkadot --version
|
|
||||||
|
|
||||||
- name: Check polkadot-parachain version
|
|
||||||
run: polkadot-parachain --version
|
|
||||||
|
|
||||||
- name: Check polkadot-execute-worker version
|
|
||||||
run: polkadot-execute-worker --version
|
|
||||||
|
|
||||||
- name: Check polkadot-prepare-worker version
|
|
||||||
run: polkadot-prepare-worker --version
|
|
||||||
|
|
||||||
- name: Test Formatting
|
|
||||||
run: make format
|
|
||||||
|
|
||||||
- name: Test Clippy
|
|
||||||
run: make clippy
|
|
||||||
|
|
||||||
- name: Test Machete
|
|
||||||
run: make machete
|
|
||||||
|
|
||||||
- name: Unit Tests
|
|
||||||
if: matrix.os == 'ubuntu-24.04'
|
|
||||||
run: cargo test --workspace -- --nocapture
|
|
||||||
|
|
||||||
# We can't install docker in the MacOS image used in CI and therefore we need to skip the
|
|
||||||
# Kurtosis and lighthouse related tests when running the CI on MacOS.
|
|
||||||
- name: Unit Tests
|
|
||||||
if: matrix.os == 'macos-14'
|
|
||||||
run: |
|
run: |
|
||||||
cargo test --workspace -- --nocapture --skip lighthouse_geth::tests::
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y protobuf-compiler clang libclang-dev
|
||||||
|
- name: Install dependencies (macOS)
|
||||||
|
if: matrix.os == 'macos-14' && steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
brew install protobuf llvm
|
||||||
|
LLVM_PREFIX="$(brew --prefix llvm)"
|
||||||
|
echo "LDFLAGS=-L${LLVM_PREFIX}/lib" >> "$GITHUB_ENV"
|
||||||
|
echo "CPPFLAGS=-I${LLVM_PREFIX}/include" >> "$GITHUB_ENV"
|
||||||
|
echo "CMAKE_PREFIX_PATH=${LLVM_PREFIX}" >> "$GITHUB_ENV"
|
||||||
|
echo "LIBCLANG_PATH=${LLVM_PREFIX}/lib" >> "$GITHUB_ENV"
|
||||||
|
echo "DYLD_FALLBACK_LIBRARY_PATH=${LLVM_PREFIX}/lib" >> "$GITHUB_ENV"
|
||||||
|
echo "${LLVM_PREFIX}/bin" >> "$GITHUB_PATH"
|
||||||
|
- name: Build Polkadot Dependencies
|
||||||
|
if: steps.cache-step.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cargo build \
|
||||||
|
--locked \
|
||||||
|
--profile production \
|
||||||
|
--package revive-dev-node \
|
||||||
|
--package pallet-revive-eth-rpc;
|
||||||
|
mv ./target/production/revive-dev-node ~/.cargo/bin
|
||||||
|
mv ./target/production/eth-rpc ~/.cargo/bin
|
||||||
|
chmod +x ~/.cargo/bin/*
|
||||||
|
|||||||
+2
-4
@@ -3,6 +3,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/*.json
|
/*.json
|
||||||
|
*.sh
|
||||||
|
|
||||||
# We do not want to commit any log files that we produce from running the code locally so this is
|
# We do not want to commit any log files that we produce from running the code locally so this is
|
||||||
# added to the .gitignore file.
|
# added to the .gitignore file.
|
||||||
@@ -13,7 +14,4 @@ workdir
|
|||||||
|
|
||||||
!/schema.json
|
!/schema.json
|
||||||
!/dev-genesis.json
|
!/dev-genesis.json
|
||||||
|
!/scripts/*
|
||||||
# Ignore all shell scripts except for the `run_tests.sh` script
|
|
||||||
*.sh
|
|
||||||
!run_tests.sh
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
[submodule "polkadot-sdk"]
|
|
||||||
path = polkadot-sdk
|
|
||||||
url = https://github.com/paritytech/polkadot-sdk.git
|
|
||||||
[submodule "resolc-compiler-tests"]
|
[submodule "resolc-compiler-tests"]
|
||||||
path = resolc-compiler-tests
|
path = resolc-compiler-tests
|
||||||
url = https://github.com/paritytech/resolc-compiler-tests
|
url = https://github.com/paritytech/resolc-compiler-tests
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
.PHONY: format clippy test machete
|
|
||||||
|
|
||||||
format:
|
|
||||||
cargo fmt --all -- --check
|
|
||||||
|
|
||||||
clippy:
|
|
||||||
cargo clippy --all-features --workspace -- --deny warnings
|
|
||||||
|
|
||||||
machete:
|
|
||||||
cargo install cargo-machete
|
|
||||||
cargo machete crates
|
|
||||||
|
|
||||||
test: format clippy machete
|
|
||||||
cargo test --workspace -- --nocapture
|
|
||||||
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
[config]
|
||||||
|
default_to_workspace = false
|
||||||
|
|
||||||
|
[tasks.machete]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["machete", "crates"]
|
||||||
|
install_crate = "cargo-machete"
|
||||||
|
|
||||||
|
[tasks.fmt-check]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["fmt", "--all", "--", "--check"]
|
||||||
|
install_crate = "rustfmt"
|
||||||
|
|
||||||
|
[tasks.clippy]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["clippy", "--all-features", "--workspace", "--", "--deny", "warnings"]
|
||||||
|
install_crate = "clippy"
|
||||||
|
|
||||||
|
[tasks.test]
|
||||||
|
command = "cargo"
|
||||||
|
args = ["test", "--workspace", "--", "--nocapture"]
|
||||||
@@ -856,7 +856,7 @@ mod tests {
|
|||||||
use utils::{new_node, test_config};
|
use utils::{new_node, test_config};
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored for the time being"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn test_transfer_transaction_should_return_receipt() {
|
async fn test_transfer_transaction_should_return_receipt() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let (ctx, node) = new_node().await;
|
let (ctx, node) = new_node().await;
|
||||||
@@ -882,6 +882,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
fn print_eth_to_polkadot_mappings() {
|
fn print_eth_to_polkadot_mappings() {
|
||||||
let eth_addresses = vec![
|
let eth_addresses = vec![
|
||||||
"0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1",
|
"0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1",
|
||||||
@@ -897,6 +898,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
fn test_eth_to_polkadot_address() {
|
fn test_eth_to_polkadot_address() {
|
||||||
let cases = vec![
|
let cases = vec![
|
||||||
(
|
(
|
||||||
@@ -927,6 +929,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
fn eth_rpc_version_works() {
|
fn eth_rpc_version_works() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let context = test_config();
|
let context = test_config();
|
||||||
@@ -946,6 +949,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
fn version_works() {
|
fn version_works() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let context = test_config();
|
let context = test_config();
|
||||||
@@ -965,7 +969,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn get_chain_id_from_node_should_succeed() {
|
async fn get_chain_id_from_node_should_succeed() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -984,7 +988,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_gas_limit_from_node() {
|
async fn can_get_gas_limit_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -1002,7 +1006,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_coinbase_from_node() {
|
async fn can_get_coinbase_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -1020,7 +1024,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_block_difficulty_from_node() {
|
async fn can_get_block_difficulty_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -1038,7 +1042,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_block_hash_from_node() {
|
async fn can_get_block_hash_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -1056,7 +1060,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_block_timestamp_from_node() {
|
async fn can_get_block_timestamp_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
@@ -1074,7 +1078,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
#[ignore = "Ignored since they take a long time to run"]
|
#[ignore = "Ignored since CI doesn't have zombienet installed"]
|
||||||
async fn can_get_block_number_from_node() {
|
async fn can_get_block_number_from_node() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let node = shared_node().await;
|
let node = shared_node().await;
|
||||||
|
|||||||
-1
Submodule polkadot-sdk deleted from 45a0ea734f
Reference in New Issue
Block a user