mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
ci: run "cargo fmt --check" in fuzz folder
This commit is contained in:
parent
a538816799
commit
04ca61dce4
1 changed files with 5 additions and 0 deletions
5
.github/workflows/code-quality.yml
vendored
5
.github/workflows/code-quality.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue