mirror of
https://github.com/pezkuwichain/pez-minimal-template.git
synced 2026-06-21 02:41:08 +00:00
Give me a test for producing blocks
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
|
- rzadp/test-produce-blocks
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
@@ -50,24 +51,6 @@ jobs:
|
|||||||
large-packages: false
|
large-packages: false
|
||||||
swap-storage: 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:
|
# This is mentioned as example in the README:
|
||||||
- name: Build the node individually in release mode
|
- name: Build the node individually in release mode
|
||||||
run: |
|
run: |
|
||||||
@@ -76,6 +59,14 @@ jobs:
|
|||||||
cargo build --package minimal-template-node --release
|
cargo build --package minimal-template-node --release
|
||||||
timeout-minutes: 90
|
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:
|
build-docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user