mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
checkout the main rustfmt.toml prior to running CI
this is necessary so that patches can't sneak through by modifying rustfmt.toml to bypass a CI checke.
This commit is contained in:
parent
da60e82584
commit
ca5845c2f6
1 changed files with 3 additions and 0 deletions
3
.github/workflows/rustfmt_check.yml
vendored
3
.github/workflows/rustfmt_check.yml
vendored
|
|
@ -13,6 +13,9 @@ jobs:
|
|||
rustup toolchain install nightly
|
||||
rustup component add rustfmt --toolchain nightly
|
||||
|
||||
- name: Ensure the `main` branch rustfmt is applied for the run
|
||||
run: git checkout main rustfmt.toml
|
||||
|
||||
- name: Run cargo +nightly fmt --check
|
||||
run: cargo +nightly fmt --check
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue