Closed kampersanda closed 2 years ago
@kampersanda Is it possible to add a step to run the formatter in GitHub Actions, (either this PR or in a separate PR)?
@tetsuok It seems to be possible to achieve that with https://github.com/stefanzweifel/git-auto-commit-action. I'll create another PR to update the CI setting (although this may take some time as I'm unfamiliar with GitHub Actions). If the PR is created, then this PR will close.
@kampersanda That solves a different problem. Would you answer the following questions?
@tetsuok
Which formatter did you use actually?
I used Taplo with the default setting.
How did you format Cargo.toml exactly?
I performed the formatting through its VS-code plugin named Even Better TOML. (more exactly, with "Format On Save" option)
@kampersanda Thanks for the info. We could add a new CI job in rust.yml
to run the tool from CLI, because Taplo provides the official Docker image on Docker Hub, which means we could run the tool like docker run tamasfe/taplo format
in the environment where Docker is installed. I can help that configuration, but if you want to work on it by yourself, that's completely fine. That's a good example to learn GitHub Actions.
@tetsuok Thank you for the advice! I will try to implement it to learn GitHub Actions!
This PR formats files of
Cargo.toml
using a formatter.