Skip to content

Execute a submitted block and check it against its header #1960

Execute a submitted block and check it against its header

Execute a submitted block and check it against its header #1960

Workflow file for this run

name: Unit Tests
on:
push:
branches: [main, staging, develop]
pull_request:
branches: [main, staging, develop]
env:
CARGO_TERM_COLOR: always
jobs:
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
postgres:
image: timescale/timescaledb-ha:pg17
env:
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2026-07-26
- name: Setup just
uses: extractions/setup-just@v2
with:
just-version: 1.5.0
- name: Run unit tests
env:
DATABASE_URL: "postgres://postgres:password@localhost:5432/postgres"
run: just test