Moved lint job into a new workflow #1
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: Lint Workflow | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
env: | |
CARGO_SCCACHE_COMMIT: bed5571c | |
SCCACHE_DIR: /home/runner/.cache/cargo-sccache-bed5571c | |
SCCACHE_BIN: /home/runner/.cache/cargo-sccache-bed5571c/bin/sccache | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rust | |
uses: actions-rs/toolchain@v1 | |
- name: Check Avail code formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --check | |
- name: Check Avail-SubXt code formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --manifest-path avail-subxt/Cargo.toml --check |