Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

update precompile-xcm #428

update precompile-xcm

update precompile-xcm #428

name: Static Analysis
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
jobs:
fmt:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Install & display rust toolchain
run: rustup show
- name: Check targets are installed correctly
run: rustup target list --installed
- name: Check fmt
run: cargo fmt -- --check
- name: Check Cargo.toml format
run: |
if taplo --version &> /dev/null; then
echo "taplo-cli is already installed"
else
cargo install taplo-cli
fi
taplo fmt --check
clippy:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Install & display rust toolchain
run: rustup show
- name: Check targets are installed correctly
run: rustup target list --installed
- name: Install deps
run: sudo apt -y install protobuf-compiler
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
check-license:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Check license
uses: viperproject/check-license-header@v2
with:
path: ./
config: ./.github/license-check/config.json
strict: false