File tree Expand file tree Collapse file tree 2 files changed +53
-143
lines changed
contracts/.github/workflows Expand file tree Collapse file tree 2 files changed +53
-143
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ branches : [main, develop]
5+ push :
6+ branches : [main, develop]
7+
8+ jobs :
9+ build-and-test :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v4
14+
15+ - name : Cache Rust dependencies
16+ uses : actions/cache@v4
17+ with :
18+ path : |
19+ ~/.cargo/bin/
20+ ~/.cargo/registry/index/
21+ ~/.cargo/registry/cache/
22+ ~/.cargo/git/db/
23+ target/
24+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25+ restore-keys : |
26+ ${{ runner.os }}-cargo-
27+
28+ - name : Install Rust stable toolchain
29+ uses : dtolnay/rust-toolchain@stable
30+ with :
31+ toolchain : stable
32+ components : rustfmt, clippy
33+
34+ - name : Install Rust nightly toolchain
35+ uses : dtolnay/rust-toolchain@nightly
36+ with :
37+ toolchain : nightly
38+ components : rustfmt, clippy
39+
40+ - name : Install soroban-cli
41+ run : cargo install soroban-cli --locked
42+
43+ - name : Check formatting
44+ run : cargo +nightly fmt --all -- --check
45+
46+ - name : Check compilation
47+ run : cargo +nightly check --all
48+
49+ - name : Run clippy lints
50+ run : cargo +nightly clippy --all -- -D warnings
51+
52+ - name : Run unit tests
53+ run : cargo +nightly test --all
You can’t perform that action at this time.
0 commit comments