diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 00000000..b766ccde --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,28 @@ +name: Dependency checks + +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: + - main + push: + branches: + - main + workflow_dispatch: + +jobs: + check-dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/setup + + - name: Install Rust + run: | + rustup show + rustup toolchain install nightly + cargo install --git https://github.com/paritytech/psvm psvm + + - name: Check Dependency Versions + chmod +x ./scripts/check-dependency-versions.sh + ./scripts/check-dependency-versions.sh diff --git a/.github/workflows/smoke.yml b/.github/workflows/smoke.yml new file mode 100644 index 00000000..eebe7733 --- /dev/null +++ b/.github/workflows/smoke.yml @@ -0,0 +1,44 @@ +name: Smoke tests + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: + - main + push: + branches: + - main + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + docker-task: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Zombienet setup + wget https://github.com/paritytech/zombienet/releases/download/v1.3.100/zombienet-linux-x64 + chmod +x zombienet-linux + + - name: Pull Docker Image + run: docker pull szegoo/regionx-node:latest + + - name: Create Container + id: create-container + run: | + container_id=$(docker create szegoo/regionx-node:latest) + echo "::set-output name=container_id::$container_id" + + - name: Copy Executable from Container + run: | + docker cp ${{ steps.create-container.outputs.container_id }}:/usr/bin/regionx-node . + + - name: Run smoke test 0001 + run: ./zombienet-linux -p native test ./zombienet_tests/0001-smoke-test.zndsl diff --git a/node/src/service.rs b/node/src/service.rs index 24061fb5..932a1470 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -411,6 +411,7 @@ fn start_consensus( ); let params = BasicAuraParams { + // TODO: create_inherent_data_providers: move |_, ()| async move { Ok(()) }, block_import, para_client: client, diff --git a/scripts/check-dependency-versions.sh b/scripts/check-dependency-versions.sh new file mode 100755 index 00000000..5b6b7e9c --- /dev/null +++ b/scripts/check-dependency-versions.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +output=$(psvm -v "1.6.0") + +success="Dependencies in Cargo.toml are already up to date" + +if [ "$output" != "$success" ]; then + exit 1 +fi diff --git a/zombienet_tests/0001-smoke-test.toml b/zombienet_tests/0001-smoke-test.toml index 197a45a7..5bbdfad1 100644 --- a/zombienet_tests/0001-smoke-test.toml +++ b/zombienet_tests/0001-smoke-test.toml @@ -21,7 +21,7 @@ addToGenesis = false [parachains.collator] name = "regionx-collator01" - image = "{{COL_IMAGE}}" + image = "{{REGIONX_IMAGE}}" command = "regionx-node" args = [ "-lruntime=debug,parachain=trace" ]