mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +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:
commit
84f205d5db
1 changed files with 6 additions and 1 deletions
7
.github/workflows/CICD.yml
vendored
7
.github/workflows/CICD.yml
vendored
|
@ -58,8 +58,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
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"
|
- 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
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue