From 04ca61dce485b3a085b53020030f3faf2a66aad4 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 19 May 2025 13:59:57 +0200 Subject: [PATCH] ci: run "cargo fmt --check" in fuzz folder --- .github/workflows/code-quality.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 1c78fcaa2..6323d2d78 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -62,6 +62,11 @@ jobs: # * convert any errors/warnings to GHA UI annotations; ref: S=$(cargo fmt -- --check) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s\n" "$S" | sed -E -n -e "s/^Diff[[:space:]]+in[[:space:]]+${PWD//\//\\/}\/(.*)[[:space:]]+at[[:space:]]+[^0-9]+([0-9]+).*$/::${fault_type} file=\1,line=\2::${fault_prefix}: \`cargo fmt\`: style violation (file:'\1', line:\2; use \`cargo fmt -- \"\1\"\`)/p" ; fault=true ; } if [ -n "${{ steps.vars.outputs.FAIL_ON_FAULT }}" ] && [ -n "$fault" ]; then exit 1 ; fi + - name: "cargo fmt on fuzz dir" + shell: bash + run: | + cd fuzz + cargo fmt --check style_lint: name: Style/lint