Toml-sort (#69)

* run toml sort and add script for it

* add ci

* try patch

* try fix

* add file permissions

* check if installation state persists or starts from scratch every time

* Revert "check if installation state persists or starts from scratch every time"

This reverts commit 45e7aae8d2f18cbe1a78482d234b98fcfbe8b6ae.

* Apply suggestions from code review

* clean

* fix

* try revert

* fix
This commit is contained in:
Amar Singh
2023-12-20 19:05:36 -05:00
committed by GitHub
parent b734abf5eb
commit 7d53d4f679
8 changed files with 137 additions and 73 deletions
+9
View File
@@ -57,6 +57,15 @@ jobs:
- name: install rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install toml-sort
run: cargo install --git https://github.com/4meta5/toml_sort
- name: Add file permissions for toml-sort
run: chmod +x ./scripts/toml-sort.sh
- name: Add file permissions for check-toml-sorted
run: chmod +x ./scripts/check-toml-sorted.sh
- name: Check Cargo.toml files are formatted using toml_sort
run: ./scripts/check-toml-sorted.sh
- name: Check format
run: cargo fmt --all -- --check