Give me a test for producing blocks

This commit is contained in:
rzadp
2024-08-08 18:12:40 +02:00
parent 3f74c0485e
commit a62d6d31eb
+9 -18
View File
@@ -6,6 +6,7 @@ on:
branches:
- main
- master
- rzadp/test-produce-blocks
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -50,24 +51,6 @@ jobs:
large-packages: false
swap-storage: false
- name: Build the template
run: cargo build
timeout-minutes: 90
- name: Run clippy
run: |
SKIP_WASM_BUILD=1 cargo clippy --all-targets --locked --workspace --quiet
SKIP_WASM_BUILD=1 cargo clippy --all-targets --all-features --locked --workspace --quiet
timeout-minutes: 30
- name: Run the tests
run: SKIP_WASM_BUILD=1 cargo test
timeout-minutes: 15
- name: Build the docs
run: SKIP_WASM_BUILD=1 cargo doc --workspace --no-deps
timeout-minutes: 15
# This is mentioned as example in the README:
- name: Build the node individually in release mode
run: |
@@ -76,6 +59,14 @@ jobs:
cargo build --package minimal-template-node --release
timeout-minutes: 90
- name: Make sure the node is producing blocks
run: |
./target/release/minimal-template-node --dev 2>&1 | tee out.txt &
until curl -s '127.0.0.1:9944'; do sleep 5; done
until curl -s 'cat out.txt | grep -s "Imported #2"'; do sleep 5; done
shell: bash
timeout-minutes: 5
build-docker:
runs-on: ubuntu-latest
steps: