Skip to content

Commit d1b788e

Browse files
jinankjainrussell-islam
authored andcommitted
misc: Add a new github workflow to run taplo
Check that the Cargo.toml files meets the formatting requirements. Signed-off-by: Jinank Jain <[email protected]>
1 parent a69ac56 commit d1b788e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/taplo.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Cargo.toml Formatting (taplo)
2+
on:
3+
pull_request:
4+
paths:
5+
- '**/Cargo.toml'
6+
7+
jobs:
8+
cargo_toml_format:
9+
name: Cargo.toml Formatting
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Code checkout
13+
uses: actions/checkout@v4
14+
- name: Install Rust toolchain
15+
uses: dtolnay/rust-toolchain@stable
16+
- name: Install build dependencies
17+
run: sudo apt-get update && sudo apt-get -yqq install build-essential libssl-dev
18+
- name: Install taplo
19+
run: cargo install taplo-cli --locked
20+
- name: Check formatting
21+
run: taplo fmt --check
22+

0 commit comments

Comments
 (0)