Skip to content

Add governance and staking #141

Add governance and staking

Add governance and staking #141

name: Build, test and lint
on:
push:
branches:
- release-**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# Disable previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: "Build"
runs-on: parity-large
container:
image: "paritytech/ci-unified:latest"
steps:
- uses: actions/checkout@v3
- name: Rustfmt
run: |
cargo fmt --all --check
- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true
- name: Check Build
run: |
cargo check --release --features try-runtime,runtime-benchmarks
- name: Run tests
run: cargo test --release --features try-runtime,runtime-benchmarks --locked --verbose --all