Update encointer-kusama.json (#226) #10
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: "Rustfmt (check)" | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-dev*' | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
verbose: | |
description: "Set --verbose to get verbose build output" | |
required: false | |
default: 'true' | |
jobs: | |
rustfmt: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set rust version via common env file | |
run: cat .github/env >> $GITHUB_ENV | |
- name: Install nightly toolchain | |
run: rustup toolchain install "nightly-$RUST_NIGHTLY_VERSION" --profile minimal --component rustfmt | |
- name: Rustfmt (check) | |
run: cargo +nightly-$RUST_NIGHTLY_VERSION fmt --all -- --check |