Skip to content

Commit 5edafa6

Browse files
authored
Merge pull request #82 from Kevin737866/no-payment-tracking
No payment tracking
2 parents 7c6957b + 4a7dd72 commit 5edafa6

File tree

3 files changed

+990
-0
lines changed

3 files changed

+990
-0
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

0 commit comments

Comments
 (0)