Skip to content

Commit 9c6ad74

Browse files
committed
feat: upcated ci and add starknet-rd dependency
1 parent 403aead commit 9c6ad74

File tree

3 files changed

+2663
-64
lines changed

3 files changed

+2663
-64
lines changed

.github/workflows/sdk_ci.yml

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,35 @@
1-
name: Build and Test Rust Backend
1+
name: CI
22

33
on: [push, pull_request]
44

5-
permissions:
6-
contents: read
7-
85
jobs:
9-
ci:
6+
test:
107
runs-on: ubuntu-latest
118
steps:
129
- uses: actions/checkout@v4
13-
14-
- uses: dtolnay/rust-toolchain@stable
15-
with:
16-
components: rustfmt, clippy
17-
18-
- uses: actions/cache@v4
10+
- name: Run tests
11+
run: cargo test --verbose
12+
fmt:
13+
name: Rustfmt
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install the Rust toolchain
18+
uses: actions-rust-lang/setup-rust-toolchain@v1
1919
with:
20-
path: |
21-
~/.cargo/registry/index/
22-
~/.cargo/registry/cache/
23-
~/.cargo/git/db/
24-
target/
25-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
26-
restore-keys: ${{ runner.os }}-cargo-
27-
28-
- name: Format check
29-
run: cargo fmt --all -- --check
30-
31-
# - name: Clippy
32-
# run: cargo clippy --all-targets -- -D warnings
33-
34-
- name: Test
35-
run: cargo test
36-
37-
- name: Build
38-
run: cargo build --release
20+
components: rustfmt
21+
- name: Strict formatting
22+
run: cargo fmt --check
23+
24+
# clippy:
25+
# name: Clippy
26+
# runs-on: ubuntu-latest
27+
# steps:
28+
# - uses: actions/checkout@v4
29+
# - name: Install the Rust toolchain
30+
# uses: actions-rust-lang/setup-rust-toolchain@v1
31+
# with:
32+
# components: clippy
33+
34+
# - name: Linting
35+
# run: cargo clippy --lib --tests -- -D warnings

0 commit comments

Comments
 (0)