From 5d47aa24fcba3da9a059df951b176bd121ea6b02 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Wed, 13 Jan 2021 14:55:15 +0200 Subject: [PATCH] ci: add stable cargo fmt check run clippy only on ubuntu-latest as it doesn't seem to be installed on windows. however all code is processed by rustfmt regardless of the target. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2dfbeef4..27437f93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: run: rustup component add clippy - if: matrix.rust != 'nightly' run: cargo clippy --all-features -- -D warnings + - if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' + run: cargo fmt --all -- --check - run: cargo build --no-default-features --verbose - run: cargo test --features="master resolv resolv-sync sign tsig validate" --verbose