Skip to content

Merge pull request #81 from jahrulezfrancis/feat/escro-contract-metad… #13

Merge pull request #81 from jahrulezfrancis/feat/escro-contract-metad…

Merge pull request #81 from jahrulezfrancis/feat/escro-contract-metad… #13

Workflow file for this run

name: CI Build & Lint for Contract
on:
push:
paths:
- 'craft-nexus-contract/**'
- '.github/workflows/contract.yml'
pull_request:
paths:
- 'craft-nexus-contract/**'
- '.github/workflows/contract.yml'
jobs:
build-and-test:
name: Build and Test Contract
runs-on: ubuntu-latest
defaults:
run:
working-directory: craft-nexus-contract
steps:
- name: Checkout Source Code
uses: actions/checkout@v4
- name: Install wasm targets
run: rustup target add wasm32-unknown-unknown wasm32v1-none
- name: Rust Cache Dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: craft-nexus-contract
- name: Install Soroban CLI
run: |
wget -q https://github.com/stellar/stellar-cli/releases/download/v25.2.0/stellar-cli-25.2.0-x86_64-unknown-linux-gnu.tar.gz -O stellar-cli.tar.gz
tar xzf stellar-cli.tar.gz
sudo mv stellar /usr/local/bin/soroban
chmod +x /usr/local/bin/soroban
rm stellar-cli.tar.gz
- name: Build Contract
run: soroban contract build
- name: Test Contract
run: cargo test