You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2026/09/02 08:08:12 UTC

svn commit: r1937759 - spamassassin/trunk/.github/act

Author: gbechis
Date: Wed Sep  2 08:08:12 2026
New Revision: 1937759

Log:
runs GitHub Actions workflows locally in Docker using https://github.com/nektos/act

Submitted by: Giovanni <g....@snb.it>

Github: closes #38

Added:
   spamassassin/trunk/.github/act/
   spamassassin/trunk/.github/act/README.md
   spamassassin/trunk/.github/act/act-event.json.dist   (contents, props changed)
   spamassassin/trunk/.github/act/act.env.dist

Added: spamassassin/trunk/.github/act/README.md
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ spamassassin/trunk/.github/act/README.md	Wed Sep  2 08:08:12 2026	(r1937759)
@@ -0,0 +1,29 @@
+# Running spamassassin_make_test.yml locally with `act`
+
+[`act`](https://github.com/nektos/act) runs GitHub Actions workflows locally in Docker, so you can test
+`.github/workflows/spamassassin_make_test.yml` without pushing to GitHub.
+
+## Files
+
+Copy each `.dist` template to drop the `.dist` suffix, then edit as needed:
+
+```bash
+cp .github/act/act-event.json.dist .github/act/act-event.json
+cp .github/act/act.env.dist .github/act/act.env
+```
+
+- `act-event.json` — the `workflow_dispatch` event payload. Set `inputs.runners`, `inputs.perls`,
+  `inputs.database` (each a JSON-encoded string, matching the workflow's own input defaults) to pick
+  which OS/perl/database combinations to run, and `inputs.tests` to a `t/*.t` glob to restrict which
+  tests run.
+- `act.env` — environment variables passed into the job containers, e.g. `PERL_MM_USE_DEFAULT=1`.
+
+## Run
+
+```bash
+# dry run — show what would execute without running it
+act -n -e .github/act/act-event.json --env-file .github/act/act.env
+
+# real run
+act -e .github/act/act-event.json --env-file .github/act/act.env
+```

Added: spamassassin/trunk/.github/act/act-event.json.dist
==============================================================================
Binary file. No diff available.

Added: spamassassin/trunk/.github/act/act.env.dist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ spamassassin/trunk/.github/act/act.env.dist	Wed Sep  2 08:08:12 2026	(r1937759)
@@ -0,0 +1 @@
+PERL_MM_USE_DEFAULT=1