You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run the lightweight workflow smoke tests locally with [`act`](https://github.com/nektos/act).
128
+
These tests exercise the reusable trigger workflow against canned review-comment payloads and intentionally skip bridge-artifact emission.
129
+
The composite-action smoke harness uses the internal test-only `bridge_override_json` input; that input exists only for local/CI testing and is not part of the supported public API.
130
+
131
+
Prerequisites:
132
+
133
+
- `act`installed locally
134
+
- Docker running
135
+
- `GITHUB_TOKEN` available if the workflow under test needs it, for example:
136
+
`export GITHUB_TOKEN="$(gh auth token)"`
137
+
138
+
Run all local `act` smoke tests:
139
+
140
+
```bash
141
+
tests/actions/run_act_smoke.sh
142
+
```
143
+
144
+
That script auto-discovers all reusable-workflow event fixtures under `tests/actions/events/` and then runs the composite-action smoke harness.
145
+
If `GITHUB_TOKEN` is set in the environment, the script passes it through to `act` as a secret.
| `source_workflow` | string | Yes | - | Name of the source workflow that emitted the bridge artifact. |
286
+
| `bridge_override_json` | string | No | `''` | Internal test-only override used by the local/CI `act` harness instead of consuming the bridge artifact. Do not rely on this in normal workflow usage; it is not part of the supported public API. |
241
287
| `allow_pr_author` | boolean | No | `true` | Always allow PR author to trigger. |
| `branch_token` | string | No | `''` | Optional branch push token for `push_to_fork` mode. Falls back to `token`, then `github.token`, but fork mode should use an explicit token with write access to the fork. |
250
296
251
297
Sensitive values should be passed through action inputs using workflow secrets when you do not want to rely on `github.token`, for example `token: ${{ secrets.SPLICE_BOT_TOKEN }}`.
298
+
Test-only internal inputs such as `bridge_override_json` are intentionally undocumented outside the local test harness context and may change without notice.
0 commit comments