Skip to content

Commit 97a9acf

Browse files
committed
test: run_ci_with_act.py script
1 parent d68e6e8 commit 97a9acf

File tree

2 files changed

+1052
-0
lines changed

2 files changed

+1052
-0
lines changed

util/README.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ This directory holds additional scripts and files for building and testing.
1313
- Docs build runs by default; pass `--skip-docs` to omit the documentation step. Docs are built after install with `MRDOCS_ROOT` pointed at the freshly installed prefix so the generated reference uses that version.
1414
- Strict tests (self-doc, format check, warn-as-error) are enabled by default; pass `--no-strict` to disable `MRDOCS_BUILD_STRICT_TESTS`.
1515
- `util/reformat.py` supports `--check` to validate formatting/include guards without modifying files (used by the strict test suite).
16+
17+
== CI tests with act
18+
19+
- Run `python util/run_ci_with_act.py` to install https://github.com/nektos/act (if needed) under `local/act/`, pull lightweight Ubuntu runner images, and execute every job defined in `.github/workflows/ci.yml` using the `pull_request` event payload.
20+
- Script state (act binary, caches, artifacts, secrets stub) lives in `local/act/`, which is already git-ignored. Secrets default to placeholders so side-effecting publishing steps stay skipped.
21+
- Pass `--list-jobs` to see the discovered job IDs, `--jobs build llvm-releases` to target a subset, `--image ubuntu-24.04=<image>` to override the minimal runner image, or `--dry-run` to inspect the generated act commands.
22+
- The script maps the host architecture to `linux/amd64` or `linux/arm64` automatically and pre-pulls runner images before starting jobs. Use `--reuse` to let `act` keep containers alive between job batches if Docker resources allow.

0 commit comments

Comments
 (0)