Skip to content

Commit

Permalink
CI(Rustfmt): Update command to support unstable features
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
  • Loading branch information
PaulDance committed Feb 18, 2024
1 parent 970f7e4 commit 6876996
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,18 @@ jobs:
run: cargo test --verbose --all-targets --all-features

- name: Check correct rustfmt formatting
run: cargo fmt --verbose --all --check
# HACK: pass all configuration items via CLI to circumvent unstability restriction.
run: >
cargo fmt --verbose --all --check
-- --config-path=/dev/null --config=$(
cat rustfmt.toml |
sed -E 's/\#.*$//g' |
sed '/^$/d' |
sed 's/ //g' |
sed -Ez 's/(\r)?\n/,/g' |
sed 's/,$//' |
sed 's/"//g'
)
- name: Check clippy warnings
run: cargo clippy --verbose --all-targets --all-features -- --deny warnings
Expand Down

0 comments on commit 6876996

Please sign in to comment.