Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Sep 13, 2024
1 parent 9031b55 commit 65fb99a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
ref: release-crates-io-v1.7.0
path: snowbridge/polkadot-sdk
- run: pwd
- run: ls
- run: ls && cd snowbridge && ls && cd -
- uses: arduino/setup-protoc@v2
with:
Expand All @@ -56,7 +57,7 @@ jobs:
run: |
cd snowbridge
nix develop -c sh -c '
./scripts/init.sh &&
./scripts/init-smoketests.sh &&
cd web/packages/test &&
(./scripts/start-services.sh > "${{ env.LOG_DIR }}/start-services.log" 2>&1 &) &&
sleep 10 &&
Expand Down
47 changes: 47 additions & 0 deletions scripts/init-smoketests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env bash

set -eux

echo "Checkout polkadot-sdk"
pushd ..
if [ ! -d "polkadot-sdk" ]; then
git clone https://github.com/parity-tech/polkadot-sdk.git
cd snowbridge && ln -sf ../polkadot-sdk polkadot-sdk
fi
pushd polkadot-sdk
git fetch && git checkout snowbridge
popd
popd

echo "Checkout lodestar"
pushd ..
if [ ! -d "lodestar" ]; then
git clone https://github.com/ChainSafe/lodestar
fi
if [ ! -L "snowbridge/lodestar" ]; then
(cd snowbridge && ln -sf ../lodestar lodestar)
fi
pushd lodestar
git fetch && git checkout $LODESTAR_VERSION
popd
popd

echo "Setting up git hooks"
git config --local core.hooksPath hooks/

echo "Installing Rust nightly toolchain"
rustup default stable
rustup target add wasm32-unknown-unknown
rustup install --profile minimal $RUST_NIGHTLY_VERSION
rustup component add --toolchain $RUST_NIGHTLY_VERSION rustfmt
rustup show

echo "Installing sszgen"
go install github.com/ferranbt/fastssz/[email protected]

echo "Installing cargo fuzz"
cargo install cargo-fuzz

echo "Installing web packages"
(cd web && pnpm install)

0 comments on commit 65fb99a

Please sign in to comment.