mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Merge pull request #7958 from cakebaker/ci_run_fmt_on_fuzz
ci: run `cargo fmt --check` in `fuzz` folder
This commit is contained in:
@@ -62,6 +62,11 @@ jobs:
|
||||
# * convert any errors/warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user