CI: create blank versions of configured files before lint
Required now that we have dynamically generated sources.
This commit is contained in:
parent
7a77f31aa3
commit
96d4cd50d4
@ -86,6 +86,10 @@ rustfmt:
|
|||||||
stage: "lint"
|
stage: "lint"
|
||||||
script:
|
script:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
|
# Create blank versions of our configured files
|
||||||
|
# so rustfmt does not yell about non-existent files or completely empty files
|
||||||
|
- echo -e "" >> podcasts-gtk/src/config.rs
|
||||||
|
- echo -e "" >> podcasts-gtk/src/static_resource.rs
|
||||||
- rustc -Vv && cargo -Vv
|
- rustc -Vv && cargo -Vv
|
||||||
- cargo fmt --version
|
- cargo fmt --version
|
||||||
- cargo fmt --all -- --color=always --check
|
- cargo fmt --all -- --color=always --check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user