1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #1475 from rivy/add.fmt-tests

maint/CICD ~ add `cargo fmt` style testing of tests
This commit is contained in:
Sylvestre Ledru 2020-04-14 12:29:01 +02:00 committed by GitHub
commit 84f205d5db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,8 +58,13 @@ jobs:
with:
command: fmt
args: --all -- --check
- name: "`fmt` testing of tests"
if: steps.vars.outputs.JOB_DO_FORMAT_TESTING
shell: bash
run: |
find tests -name "*.rs" -print0 | xargs -0 cargo fmt -- --check
- name: "`clippy` testing"
if: success() || failure() # run regardless of prior step ("`fmt` testing") success/failure
if: success() || failure() # run regardless of prior step success/failure
uses: actions-rs/cargo@v1
with:
command: clippy