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

Test fixture for sepolia #1097

Merged
merged 12 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 47 additions & 12 deletions .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
SKIP_WASM_BUILD: 1
RUST_NIGHTLY_VERSION: nightly-2023-05-23
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -52,15 +53,16 @@ jobs:
run: rustup show
- name: cargo check
working-directory: parachain
run: >
cargo check
--workspace
--features runtime-benchmarks
--exclude snowbridge-runtime-tests
run: cargo check --workspace --all-features
- name: clippy
working-directory: parachain
run: cargo clippy -- -D warnings

- name: format
working-directory: parachain
run: |
rustup install --profile minimal $RUST_NIGHTLY_VERSION
rustup component add --toolchain $RUST_NIGHTLY_VERSION rustfmt
cargo +$RUST_NIGHTLY_VERSION fmt --check
- name: install taplo
run: |
cargo install taplo-cli --locked
Expand Down Expand Up @@ -95,6 +97,7 @@ jobs:
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
SKIP_WASM_BUILD: 1
RUST_MIN_STACK: 8388608
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -122,15 +125,20 @@ jobs:
cargo test
--workspace
--features runtime-benchmarks
--exclude snowbridge-runtime-tests
# Run tests for fast-runtime feature
- name: Tests for fast-runtime
working-directory: parachain
run: >
cargo test
--workspace
--features fast-runtime
--exclude snowbridge-runtime-tests
# Run tests for all features
- name: Tests for all features
working-directory: parachain
run: >
cargo test
--workspace
--all-features

coverage:
needs: check
Expand All @@ -140,6 +148,7 @@ jobs:
RUST_BACKTRACE: 1
RUSTFLAGS: -C debuginfo=1
SKIP_WASM_BUILD: 1
RUST_MIN_STACK: 8388608
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -156,7 +165,6 @@ jobs:
cargo install cargo-tarpaulin@0.27.0 &&
cargo tarpaulin
--workspace
--features beacon-spec-minimal
--engine llvm
--out xml
- name: Upload coverage reports to Codecov with GitHub Action
Expand All @@ -166,7 +174,7 @@ jobs:
files: cobertura.xml
flags: rust

check-cumulus-bridgehub:
check-cumulus:
runs-on: snowbridge-runner
steps:
- uses: actions/checkout@v2
Expand All @@ -177,13 +185,41 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup rust toolchain
run: rustup show
- name: check bridge-hub runtime
- name: check bridge-hub fast-runtime
working-directory: polkadot-sdk
run: >
cargo check
--release --verbose
--package bridge-hub-rococo-runtime
--features fast-runtime
- name: check bridge-hub runtime-benchmarks
working-directory: polkadot-sdk
run: >
cargo check
--release --verbose
--package bridge-hub-rococo-runtime
--features runtime-benchmarks
- name: check bridge-hub try-runtime
working-directory: polkadot-sdk
run: >
cargo check
--release --verbose
--package bridge-hub-rococo-runtime
--features try-runtime
- name: check bridge-hub all features
working-directory: polkadot-sdk
run: >
cargo check
--release --verbose
--package bridge-hub-rococo-runtime
--all-features
- name: check asset-hub all features
working-directory: polkadot-sdk
run: >
cargo check
--release --verbose
--package asset-hub-rococo-runtime
--all-features

runtime-tests:
needs: check
Expand All @@ -201,7 +237,6 @@ jobs:
working-directory: parachain/runtime/tests
run: >
cargo test
-p snowbridge-runtime-tests
-- --nocapture

integration-tests:
Expand Down
2 changes: 0 additions & 2 deletions parachain/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ rococo-local.json

# coverage reports
cobertura.xml

pallets/ethereum-beacon-client/tests/fixtures/*.mainnet.json
Loading
Loading