Skip to content

Commit

Permalink
Add Cargo.toml linting to CI (#187)
Browse files Browse the repository at this point in the history
* Add Cargo.toml linting to CI

* Fix non-alphabetical dependency order in Cargo.toml files
  • Loading branch information
Dentosal authored Feb 28, 2022
1 parent 034f90f commit 7a65f2a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
- name: Install rustfmt
run: rustup component add rustfmt

- name: Install Cargo.toml linter
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-toml-lint
version: "0.1"

- name: Run Cargo.toml linter
run: git ls-files | grep Cargo.toml$ | xargs --verbose -n 1 cargo-toml-lint

- name: Check formatting
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion fuel-core-interfaces/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fuel-tx = { version = "0.5", features = ["serde-types"] }
fuel-types = { version = "0.1", features = ["serde-types"] }
fuel-vm = "0.4"
futures = "0.3"
lazy_static = "1.4"
parking_lot = "0.11"
thiserror = "1.0"
tokio = { version = "1.14", features = ["full"] }
lazy_static = "1.4"

[dev-dependencies]

Expand Down
4 changes: 2 additions & 2 deletions fuel-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ path = "src/main.rs"
test = false

[dependencies]
anyhow = "1.0"
async-graphql = { version = "=2.9", features = ["chrono", "chrono-tz"] }
async-trait = "0.1"
anyhow = "1.0"
axum = { version = "0.4.4" }
bincode = "1.3"
chrono = { version = "0.4", features = ["serde"] }
Expand Down Expand Up @@ -60,9 +60,9 @@ tracing-subscriber = { version = "0.2", features = ["env-filter"] }
uuid = { version = "0.8", features = ["v4"] }

[dev-dependencies]
assert_matches = "1.5"
fuel-vm = { version = "0.4", features = ["serde-types", "random", "test-helpers"] }
insta = "1.8"
assert_matches = "1.5"

[features]
default = ["rocksdb"]
Expand Down
2 changes: 1 addition & 1 deletion fuel-p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ futures = "0.3"
futures-timer = "3.0"
ip_network = "0.4"
libp2p = "0.41"
tracing = "0.1"
sha2 = "0.9"
tracing = "0.1"

[dev-dependencies]
env_logger = "0.9"
Expand Down

0 comments on commit 7a65f2a

Please sign in to comment.