Add governance and staking #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |