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

Latest commit

 

History

History
53 lines (40 loc) · 1.18 KB

nightly-lints.md

File metadata and controls

53 lines (40 loc) · 1.18 KB

Nightly lints CI workflow

This workflow installs latest nightly Rust version and invokes these commands in parallel:

When it can be used?

  1. You are living on an edge
  2. You prefer to use nightly versions of clippy and rustfmt, as they has more options available

Workflow

on: [push, pull_request]

name: Lints

jobs:
  clippy:
    name: Clippy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly
          override: true
          components: rustfmt, clippy
      - uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check
      - uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: -- -D warnings

Can I tune it?

Sure!

This workflow is using following Actions to execute the pipeline, see their pages for the available options:

  1. actions-rs/toolchain
  2. actions-rs/cargo