File tree Expand file tree Collapse file tree 3 files changed +990
-0
lines changed
wata-board-dapp/nepa_contract/src Expand file tree Collapse file tree 3 files changed +990
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Contract Tests
2+
3+ on :
4+ push :
5+ branches : [ main, develop ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ name : Test Contract
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Install Rust
19+ uses : dtolnay/rust-toolchain@stable
20+ with :
21+ targets : wasm32-unknown-unknown
22+
23+ - name : Cache cargo registry
24+ uses : actions/cache@v3
25+ with :
26+ path : |
27+ ~/.cargo/registry
28+ ~/.cargo/git
29+ target
30+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
31+ restore-keys : |
32+ ${{ runner.os }}-cargo-
33+
34+ - name : Install stellar-cli
35+ run : cargo install stellar-cli --locked
36+
37+ - name : Build contract
38+ run : stellar contract build
39+ working-directory : ./wata-board-dapp/nepa_contract
40+
41+ - name : Run tests
42+ run : cargo test --verbose
43+ working-directory : ./wata-board-dapp/nepa_contract
44+
45+ - name : Check formatting
46+ run : cargo fmt -- --check
47+ working-directory : ./wata-board-dapp/nepa_contract
48+
49+ - name : Run clippy
50+ run : cargo clippy -- -D warnings
51+ working-directory : ./wata-board-dapp/nepa_contract
You can’t perform that action at this time.
0 commit comments