Skip to content

Commit 1d5c8fc

Browse files
committed
ci: Add formatting check
- Run `cargo fmt` for rust code formatting - Run `taplo fmt` for toml formatting
1 parent 381f414 commit 1d5c8fc

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,25 @@ jobs:
1919

2020
- name: Test Rust
2121
run: cargo test
22+
23+
rustfmt:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Cache Rust
29+
uses: Swatinem/rust-cache@v1
30+
31+
- run: cargo fmt --all --check
32+
33+
toml_validation:
34+
runs-on: ubuntu-latest
35+
container:
36+
image: tamasfe/taplo:0.8.1
37+
steps:
38+
- name: Checkout sources
39+
uses: actions/checkout@v4
40+
- name: taplo lint
41+
run: taplo lint
42+
- name: taplo fmt
43+
run: taplo fmt --check --diff

0 commit comments

Comments
 (0)