Skip to content

Commit 9a49399

Browse files
committed
feat: added ci
1 parent 572d3a6 commit 9a49399

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,27 @@ jobs:
2626
- name: Run tests
2727
run: npm run test
2828

29+
rust:
30+
runs-on: ubuntu-latest
31+
32+
defaults:
33+
run:
34+
shell: bash
35+
working-directory: rust
36+
37+
steps:
38+
- uses: actions/checkout@v6
39+
- name: Set up Rust
40+
uses: dtolnay/rust-toolchain@stable
41+
with:
42+
components: rustfmt, clippy
43+
- name: Cache cargo
44+
uses: Swatinem/rust-cache@v2
45+
with:
46+
workspaces: rust
47+
- name: Check formatting
48+
run: cargo fmt --all -- --check
49+
- name: Lint
50+
run: cargo clippy --workspace --all-targets -- -D warnings
51+
- name: Run tests
52+
run: cargo test --workspace

0 commit comments

Comments
 (0)