feat: standalone runtime and parachain runtime #328
Workflow file for this run
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
# The Licensed Work is (c) 2022 Sygma | |
# SPDX-License-Identifier: LGPL-3.0-only | |
name: Format, linter, license check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
cargo-fmt: | |
name: Run cargo fmt | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "true" | |
- uses: ./.github/actions/install_toolchain | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
cargo-clippy: | |
name: Run cargo clippy | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "true" | |
- uses: ./.github/actions/install_toolchain | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Run cargo clippy for pallets | |
run: cargo clippy --all-targets -- -D warnings | |
cargo-deny: | |
name: Run cargo deny check licenses | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: "true" | |
- uses: ./.github/actions/install_toolchain | |
- name: Install cargo deny | |
run: cargo install --locked cargo-deny | |
- name: Run cargo deny checks for pallets | |
run: cargo-deny check licenses | |