feat(transaction-contract): Soroban transaction manager for issue #22 #29
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: NFTopia Stellar CI | |
| on: | |
| push: | |
| paths: | |
| - 'nftopia-stellar/**' | |
| pull_request: | |
| paths: | |
| - 'nftopia-stellar/**' | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: nftopia-stellar | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| targets: wasm32-unknown-unknown | |
| - name: Verify Rust project | |
| run: | | |
| if [ ! -f "Cargo.toml" ]; then | |
| echo "❌ ERROR: No Cargo.toml file found" | |
| exit 1 | |
| fi | |
| echo "✅ Rust project verified" | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo- | |
| - name: Check formatting | |
| run: cargo fmt -- --check | |
| - name: Run clippy | |
| run: cargo clippy -- -D warnings | |
| - name: Check build | |
| run: cargo check --verbose | |
| continue-on-error: false | |
| - name: Run tests | |
| run: cargo test --verbose | |
| - name: Build WASM contracts | |
| run: cargo build --target wasm32-unknown-unknown --release |