@taqwright/lime-cli 0.15.4 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/index.js +251 -172
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -335,6 +335,18 @@ flow on a cloud device, adapts the test into your **test-suite** repo, verifies
|
|
|
335
335
|
and opens a pull request there linking back. LIME holds no GitHub credential — the runner
|
|
336
336
|
already has yours.
|
|
337
337
|
|
|
338
|
+
Where `lime-cli pr` has commented with **suggested tests**, pick one by number instead of typing
|
|
339
|
+
a goal:
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
/automate 2
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
The goal comes from LIME's analysis of that pull request, never from the comment. A suggestion
|
|
346
|
+
behind a feature flag is held back until a test user for it exists. **Every reply on the pull
|
|
347
|
+
request** comes from the **Taqwright GitHub App**: the 👀, "Automating…", and the result. The
|
|
348
|
+
workflow never comments with its own token, so the templates only need `pull-requests: read`.
|
|
349
|
+
|
|
338
350
|
On **GitLab CI/CD**, `docs/gitlab/automate.yml` is the same loop, started from a manual job
|
|
339
351
|
rather than a comment — GitLab CI cannot be triggered by a comment from `.gitlab-ci.yml`
|
|
340
352
|
alone. See [GitLab CI/CD](#gitlab-cicd) below.
|
|
@@ -458,6 +470,43 @@ matrix, other-runner and other-CI variants commented in. For GitLab, `docs/gitla
|
|
|
458
470
|
is the equivalent — mind the `--run-id` note in [GitLab CI/CD](#gitlab-cicd), which is the one
|
|
459
471
|
difference that degrades the board without saying so.
|
|
460
472
|
|
|
473
|
+
### `pr` — what a pull request means for your UI tests
|
|
474
|
+
|
|
475
|
+
Run on the **app** repository's pull requests. LIME traces the change through your app's map
|
|
476
|
+
and answers, as one comment on the pull request:
|
|
477
|
+
|
|
478
|
+
- **Run these**: the tests on screens the change reaches.
|
|
479
|
+
- **Needs update**: tests that assert text this pull request changes (`$` → `SGD`), so an
|
|
480
|
+
intended change is not mistaken for a regression.
|
|
481
|
+
- **Not automated yet**: planned scenarios on the journeys it touches, and journeys with none.
|
|
482
|
+
- **Behind a feature flag**: flags the pull request adds. A test for one needs a test user the
|
|
483
|
+
flag is on for.
|
|
484
|
+
|
|
485
|
+
```yaml
|
|
486
|
+
on: pull_request
|
|
487
|
+
permissions:
|
|
488
|
+
contents: read
|
|
489
|
+
jobs:
|
|
490
|
+
lime:
|
|
491
|
+
runs-on: ubuntu-latest
|
|
492
|
+
steps:
|
|
493
|
+
- uses: actions/checkout@v4
|
|
494
|
+
with: { fetch-depth: 0 }
|
|
495
|
+
- run: npx -y @taqwright/lime-cli pr --project "Shop" --app-dir mobile
|
|
496
|
+
env:
|
|
497
|
+
LIME_CI_TOKEN: ${{ secrets.LIME_CI_TOKEN }}
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
The comment is posted by the **Taqwright GitHub App**, never by your workflow, so every pull
|
|
501
|
+
request sees one author. Install the App on the app repository and connect it in LIME →
|
|
502
|
+
Integrations. Until then the comment goes to the job summary instead.
|
|
503
|
+
|
|
504
|
+
The screens come from the app map you published from VS Code; `pr` keeps the import graph
|
|
505
|
+
current from the pull request's own checkout. What leaves the runner is file names, the part of
|
|
506
|
+
the import graph that can reach them, changed strings and source diffs with credential-looking
|
|
507
|
+
values masked. Credential files are never read. It always exits 0: a fork without secrets or a
|
|
508
|
+
shallow checkout is reported and skipped, never a failed build.
|
|
509
|
+
|
|
461
510
|
## Server API contract
|
|
462
511
|
|
|
463
512
|
`lime-cli` is the only client of the LIME server's `/api/cli/*` endpoints, so
|