ci: trigger CUA smoke test on release tags + document test policy
- Add v* tag trigger to cua-smoke.yml so releases are E2E tested - Add 'When to run CUA test' section to AGENTS.md documenting mandatory testing Closes #13 (partial) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/cua-smoke.yml
vendored
1
.github/workflows/cua-smoke.yml
vendored
@@ -4,6 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
tags: ["v*"]
|
||||||
paths:
|
paths:
|
||||||
- "scripts/android-cua-smoke.py"
|
- "scripts/android-cua-smoke.py"
|
||||||
- "src/**"
|
- "src/**"
|
||||||
|
|||||||
11
AGENTS.md
11
AGENTS.md
@@ -103,6 +103,17 @@ The correct Azure AI Services endpoint (with actual deployments) is:
|
|||||||
GitHub Actions workflow: `.github/workflows/cua-smoke.yml`
|
GitHub Actions workflow: `.github/workflows/cua-smoke.yml`
|
||||||
Secrets required: `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT` (already set on `dzianisv/opencode-mobile`).
|
Secrets required: `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT` (already set on `dzianisv/opencode-mobile`).
|
||||||
|
|
||||||
|
**Triggers**: Runs on push to `main` (with path filters) AND on `v*` tags (releases).
|
||||||
|
|
||||||
|
### When to run CUA test
|
||||||
|
|
||||||
|
**MANDATORY**: Run the CUA smoke test before any merge to `main` or release:
|
||||||
|
1. Before merging a PR that touches `src/**`, `app/**`, or `scripts/android-cua-smoke.py`
|
||||||
|
2. After creating a release tag — CI runs it automatically
|
||||||
|
3. When debugging UI issues — run locally with `--include-xml` for richer context
|
||||||
|
|
||||||
|
If the CUA test fails, do NOT merge or release until fixed.
|
||||||
|
|
||||||
## Secrets Management
|
## Secrets Management
|
||||||
|
|
||||||
All project secrets are stored in Bitwarden vault under folder **`opencode-mobile`**.
|
All project secrets are stored in Bitwarden vault under folder **`opencode-mobile`**.
|
||||||
|
|||||||
Reference in New Issue
Block a user