mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-16 00:58:31 +01:00
49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
name: Clippy
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags-ignore:
|
|
- "*"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_UNSTABLE_SPARSE_REGISTRY: "true"
|
|
|
|
jobs:
|
|
check:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- ubuntu
|
|
- windows
|
|
- macos
|
|
|
|
name: Clippy on ${{ matrix.platform }}
|
|
runs-on: "${{ matrix.platform }}-latest"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Configure toolchain
|
|
run: |
|
|
rustup toolchain install --profile minimal --no-self-update nightly
|
|
rustup default nightly
|
|
rustup component add clippy
|
|
- name: Configure caching
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-cargo-
|
|
|
|
- name: Clippy
|
|
run: cargo clippy -- -D clippy::all
|
|
|