Skip to content

feat: add hardfork storage to metadata contract #2940

feat: add hardfork storage to metadata contract

feat: add hardfork storage to metadata contract #2940

Workflow file for this run

name: Code Format
on:
pull_request:
merge_group:
workflow_dispatch:
# Ensure that only a single job or workflow using the same concurrency group will run at a time.
# see https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# only needs to check the group's latest commit
cancel-in-progress: true
jobs:
rustfmt:
strategy:
matrix:
# Supported GitHub-hosted runners and hardware resources
# see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
os: [ubuntu-22.04]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt
toolchain: nightly
- name: Cargo +nightly fmt --all -- --check
run: make check-fmt
- name: Install cargo-sort
run: |
which cargo-sort >/dev/null && echo "cargo-sort is installed" \
|| (echo "cargo-sort is not installed" && cargo install cargo-sort)
- name: Ensure Cargo.toml dependency tables are sorted
run: make check-sort