Update Tokyo chain specs #1377
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
name: Static Analysis | |
on: [push, workflow_dispatch] | |
jobs: | |
clean-up-actions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
# Only cancel non-master branch runs | |
if: ${{ github.ref != 'refs/heads/master' }} | |
uses: styfle/cancel-workflow-action@0.11.0 | |
with: | |
access_token: ${{ github.token }} | |
fmt: | |
if: github.event.pull_request.draft == false | |
runs-on: [self-hosted, Linux, X64] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v3 | |
- name: Install deps | |
run: sudo apt -y install protobuf-compiler | |
- 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: [self-hosted, Linux, X64] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v3 | |
- name: Install deps | |
run: sudo apt -y install protobuf-compiler | |
- name: free disk space | |
run: | | |
sudo swapoff -a | |
sudo rm -f /swapfile | |
sudo apt clean | |
- name: Install & display rust toolchain | |
run: rustup show | |
- name: Check targets are installed correctly | |
run: rustup target list --installed | |
- uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --features try-runtime,runtime-benchmarks -- -D warnings | |
check-license: | |
if: github.event.pull_request.draft == false | |
runs-on: [self-hosted, Linux, X64] | |
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 |