Skip to Content
Welcome to RitoSwap's documentation!
CI / CDOverview

CI/CD Overview

This section documents the GitHub Actions pipelines, composite actions, and environments that ship the four public sites. The DApp and docs use prebuilt deployments for stability, while remote builds remain available if we need to switch back.

Websites and environments

EnvironmentSiteURLPipeline
mainnetDApp (production)https://ritoswap.comDApp Pipeline
testnetDApp (testnet)https://testnet.ritoswap.comDApp Pipeline
docsDocs sitehttps://docs.ritoswap.comDocs and Storybook Pipeline
storybookUI Storybookhttps://ui.ritoswap.comDocs and Storybook Pipeline

Pipelines at a glance

Mirror dispatch wrappers

The public mirror repo (https://github.com/ritovision/ritoswap-mirror) exposes pipeline badges and triggers private workflows in ritovision/ritoswap.

  • dispatch-dapp.yml -> pipeline-dapp.yml
  • dispatch-docs-storybook.yml -> pipeline-docs-storybook.yml

These wrappers run on push and workflow_dispatch, using the ci-dispatch environment and the RITOSWAP_PAT secret in the mirror repo.

Testing and quality gates

ToolWhat it coversWhere it runs
ESLintDApp lint and docs lintDApp pipeline, Docs pipeline, Manual ESLint
VitestDApp unit and integration testsDApp pipeline (with Codecov), Docs pipeline (no Codecov), Manual unit tests
HardhatSmart contract compile + testsDApp pipeline (contracts changes), Manual hardhat tests
Playwright (predeploy)Local build smoke tests with test DBDApp pipeline, Manual predeploy E2E
Playwright (post-deploy)Live testnet smoke testsDApp pipeline, Manual smoke E2E
SupertestLive API smoke testsDApp pipeline, Manual smoke API
Vitest (docs)Docs workspace testsDocs pipeline

Coverage policy

  • DApp pipeline uploads coverage to Codecov on unit tests.
  • Storybook lint/test uses unit tests without Codecov.
  • Manual unit tests run without Codecov.
  • Coverage reports are still uploaded as GitHub artifacts for each unit-test run.

Rollback policy

Testnet uses post-deploy smoke tests and rolls back when they fail. This is treated as a close approximation of mainnet behavior. Mainnet does not run smoke tests today because it targets the live chain and this is not a commercial product with revenue at stake. The same rollback flow can be added to mainnet if desired.

Last updated on

RitoSwap Docs does not store, collect or access any of your conversations. All saved prompts are stored locally in your browser only.