Skip to content

release/nanocl: 0.16.1-nightly #5576

release/nanocl: 0.16.1-nightly

release/nanocl: 0.16.1-nightly #5576

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@v4
# 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@v4
- 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