chore: publish IntegraCI build modules 732ec6c83925
This commit is contained in:
1 parent
7a84930dea
commit
5f8a24d014
133 files changed
+18990
-2
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# e2e-test (Dagger module)
|
||||
|
||||
> **Verified 2026-07-16**: dagger v0.21.7 `develop` + `go build` + `dagger
|
||||
> functions` pass. Generated code (`dagger.gen.go`, `internal/`) is
|
||||
> gitignored; run `dagger develop` to regenerate.
|
||||
|
||||
Runs web end-to-end tests (Playwright or Cypress) against a target
|
||||
`baseURL`, uploads the report artifact, and POSTs results to the IntegraCI
|
||||
API. Mirrors the structure and idioms of the `security-scan` module.
|
||||
|
||||
## Functions
|
||||
|
||||
### `run`
|
||||
|
||||
| Param | Required | Default | Description |
|
||||
| ------------ | -------- | -------------------- | --------------------------------------------- |
|
||||
| `source` | yes | — | Source directory containing the e2e suite |
|
||||
| `base-url` | yes | — | Base URL the tests run against |
|
||||
| `tool` | no | `playwright` | Test runner: `playwright` or `cypress` |
|
||||
| `report-path`| no | `playwright-report` | Report artifact path inside the source |
|
||||
| `api-url` | no | — | IntegraCI API URL for posting results |
|
||||
| `token` | no | — | JWT token for API authentication |
|
||||
| `service-id` | no | — | Service ID to link test results |
|
||||
|
||||
Results are POSTed to the API only when `api-url`, `token`, and
|
||||
`service-id` are all supplied.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Playwright (default)
|
||||
dagger call run --source . --base-url https://staging.example.com --tool playwright
|
||||
|
||||
# Cypress, with result posting
|
||||
dagger call run \
|
||||
--source . \
|
||||
--base-url https://staging.example.com \
|
||||
--tool cypress \
|
||||
--api-url http://localhost:8000 \
|
||||
--token "$TOKEN" \
|
||||
--service-id "$SVC_ID"
|
||||
```
|
||||
|
||||
## Before you trust this
|
||||
|
||||
```bash
|
||||
dagger develop # generate the Dagger Go SDK bindings
|
||||
dagger functions # confirm `run` is registered with the expected params
|
||||
dagger call run --source . --base-url https://example.com # smoke test
|
||||
```
|
||||
Reference in new issue
Block a user