Sort dependencies in Cargo.tomls (#1076)

* sort dependencies

* check sorted deps on CI

* this should fail

* does caching matter?

* fix sorting
This commit is contained in:
David Pedersen
2022-06-10 08:59:17 +02:00
committed by GitHub
parent 453202b490
commit 968ee44631
27 changed files with 90 additions and 68 deletions
+23
View File
@@ -182,3 +182,26 @@ jobs:
-p axum-extra
-p axum-macros
--target armv5te-unknown-linux-musleabi
dependecies-are-sorted:
runs-on: ubuntu-latest
strategy:
matrix:
pwd:
- .
- examples
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
toolchain: beta
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: Install cargo-sort
run: |
cargo install cargo-sort
- name: Check dependecy tables
working-directory: ${{ matrix.pwd }}
run: |
cargo sort --workspace --grouped --check