Skip to content

release/nanocld: 0.15.0-nightly (#938) #5108

release/nanocld: 0.15.0-nightly (#938)

release/nanocld: 0.15.0-nightly (#938) #5108

Workflow file for this run

# Run Clippy
name: Clippy
on:
push:
branches: ["nightly"]
pull_request:
branches: ["nightly"]
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/nightly' }}
jobs:
clippy:
name: Clippy
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v3
# Cache Rust
- uses: Swatinem/rust-cache@v2
with:
key: ${{ hashFiles('./Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
fmt:
name: Fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check