Skip to content

Commit

Permalink
Give me a test for producing blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Aug 8, 2024
1 parent 3f74c04 commit a62d6d3
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- master
- rzadp/test-produce-blocks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -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: |
Expand All @@ -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:
Expand Down

0 comments on commit a62d6d3

Please sign in to comment.