Skip to content

Set up CI pipeline with cargo build, test, fmt, and clippy checks #2

@AbdulSnk

Description

@AbdulSnk

Overview

This issue involves setting up a GitHub Actions CI pipeline for the streamforge-contract repository to automate code quality checks on every pull request.

What needs to be done

  • Create a .github/workflows/ci.yml file
  • Configure the pipeline to run the following on every PR:
    • cargo build --all — ensures the project compiles
    • cargo test --all — runs all tests
    • cargo fmt --check — enforces code formatting
    • cargo clippy -- -D warnings — catches code quality issues

Acceptance Criteria

  • CI workflow file exists at .github/workflows/ci.yml
  • Pipeline triggers on every pull request to main
  • All four cargo checks run and must pass before a PR can merge
  • Pipeline passes on the current codebase

Pre-Submission Checklist

Before submitting your PR, confirm:

  • I have run cargo build locally and it succeeds
  • I have run cargo test locally and all tests pass
  • I have run cargo fmt to format my code
  • I have run cargo clippy and fixed all warnings

Notes

This is a great first issue for anyone familiar with GitHub Actions and Rust tooling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions