ci: add conditional e2e job + document canonical test commands
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -85,6 +85,8 @@ jobs:
|
|||||||
frontend/coverage/**
|
frontend/coverage/**
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
|
# Run only when a Cypress suite exists in the repo.
|
||||||
|
if: ${{ hashFiles('**/cypress.config.*') != '' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [check]
|
needs: [check]
|
||||||
|
|
||||||
@@ -136,7 +138,7 @@ jobs:
|
|||||||
npm run e2e -- --browser chrome
|
npm run e2e -- --browser chrome
|
||||||
|
|
||||||
- name: Upload Cypress artifacts
|
- name: Upload Cypress artifacts
|
||||||
if: always()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: cypress-artifacts
|
name: cypress-artifacts
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
[](https://github.com/abhi1693/openclaw-mission-control/actions/workflows/ci.yml)
|
[](https://github.com/abhi1693/openclaw-mission-control/actions/workflows/ci.yml)
|
||||||
|
|
||||||
|
|
||||||
Web UI + API for operating OpenClaw: managing boards, tasks, agents, approvals, and gateway connections.
|
Web UI + API for operating OpenClaw: managing boards, tasks, agents, approvals, and gateway connections.
|
||||||
|
|
||||||
## Active development
|
## Active development
|
||||||
@@ -145,6 +144,14 @@ When running Cypress (`cd frontend && npm run e2e`), make sure `NEXT_PUBLIC_API_
|
|||||||
|
|
||||||
- Testing notes: [`docs/testing/README.md`](./docs/testing/README.md)
|
- Testing notes: [`docs/testing/README.md`](./docs/testing/README.md)
|
||||||
|
|
||||||
|
### CI test suites (canonical commands)
|
||||||
|
|
||||||
|
CI (`.github/workflows/ci.yml`) runs these suites on PRs:
|
||||||
|
|
||||||
|
- **Backend**: `make backend-coverage` (includes `pytest` + coverage artifacts)
|
||||||
|
- **Frontend**: `make frontend-test` (Vitest + coverage)
|
||||||
|
- **E2E (Cypress)**: runs only when a `cypress.config.*` is present in the repo (job `e2e`).
|
||||||
|
|
||||||
### Coverage policy
|
### Coverage policy
|
||||||
|
|
||||||
CI enforces a **scoped 100% coverage gate** (statements + branches) for a small set of unit-testable modules.
|
CI enforces a **scoped 100% coverage gate** (statements + branches) for a small set of unit-testable modules.
|
||||||
|
|||||||
Reference in New Issue
Block a user