Skip to content

Workflows/ci/bff - #11

Merged
golkity merged 23 commits into
devfrom
workflows/CI/bff
May 23, 2026
Merged

golkity merged 23 commits into
devfrom
workflows/CI/bff

Conversation

@golkity

@golkity golkity commented May 23, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces the foundational Continuous Integration (CI) pipeline for the BFF service. It sets up an automated workflow to ensure code quality, security, and test coverage before merging into the dev and master branches.

Pipeline Stages

The workflow consists of four primary jobs:

  • Code Quality: Enforces formatting (cargo fmt) and strict linting (clippy). Includes protoc installation to ensure gRPC schemas compile correctly.
  • Security Audit: Scans the dependency tree for known vulnerabilities using cargo audit.
  • Test & Coverage: Runs unit and integration tests via cargo llvm-cov.
  • Docker Build & Scan: Builds the Docker image and performs a vulnerability scan (OS and libraries) using Trivy, targeting CRITICAL and HIGH severities.

Important

This pipeline enforces strict quality gates. It is configured to fail the build if clippy throws any warnings (-D warnings) or if the test code coverage falls below the 80% threshold.

Note

To optimize GitHub Actions minutes, the workflow uses path filters. It will only trigger if changes are detected within backend/service/bff_service/**, backend/libs/rust-core/**, or backend/proto/**.

Tip

Once this PR is merged, it is highly recommended to update the Branch Protection Rules for the dev branch to require this CI workflow to pass successfully before any future pull requests can be merged.

golkity added 23 commits May 22, 2026 10:22
…d init cargo envirment and using slim docker
…on Reg Request and add field exppires_in Login Response
@golkity golkity self-assigned this May 23, 2026
@golkity golkity added the enhancement New feature or request label May 23, 2026
@golkity
golkity merged commit 40244df into dev May 23, 2026
2 of 4 checks passed
@golkity
golkity deleted the workflows/CI/bff branch May 23, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant