Skip to content

#1 Issue 1: [DevOps] Setup Soroban CI/CD Pipeline #1

Description

@elizabetheonoja-art

Description:
We need to ensure that every Pull Request is automatically tested to prevent breaking the smart contract logic.

Task:
Create a GitHub Actions workflow file at .github/workflows/test.yml.

Implementation Details:

YAML
name: Scholar Contract Tests

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- name: Install Stellar CLI
run: |
wget https://github.com/stellar/stellar-cli/releases/download/v25.1.0/stellar-cli-25.1.0-x86_64-unknown-linux-gnu.tar.gz
tar -xzf stellar-cli-25.1.0-x86_64-unknown-linux-gnu.tar.gz
sudo mv stellar-cli-25.1.0-x86_64-unknown-linux-gnu/stellar /usr/local/bin/
- name: Build Contract
run: cargo build --target wasm32-unknown-unknown --release
- name: Run Unit Tests
run: cargo test
Acceptance Criteria:

[ ] Workflow runs on push to main.

[ ] cargo test passes successfully.

Priority: Critical
Labels: devops, ci

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions