aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/step.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-04 01:05:10 +0900
committerOphestra <cat@gensokyo.uk>2026-10-06 19:41:06 +0900
commita7383510fb05abc98b992240cb76ad4b6c598956 (patch)
tree90881e9d6952e050128f1378d66452c7d733d012 /internal/workflows/step.go
parentb452e1047ccd3e1826da16416430e6638270155b (diff)
test/sandbox: migrate tests
This significantly improves performance, removing overhead of nix, python, and virtualisation. Running this in an unprivileged container required patching the kernel, but since special runner setup was already needed, that was an acceptable tradeoff. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/workflows/step.go')
-rw-r--r--internal/workflows/step.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/workflows/step.go b/internal/workflows/step.go
index 83d9c5f3..199f82d9 100644
--- a/internal/workflows/step.go
+++ b/internal/workflows/step.go
@@ -76,11 +76,12 @@ func newTestsuite(name, prefix string) Step {
// newPackages returns a job for installing the specified packages with
// best-effort caching. Package names must not contain spaces.
-func newPackages(rev int, packages ...string) Step {
+func newPackages(rev int, repos []string, packages ...string) Step {
return Step{
Name: "Install packages",
Uses: "awalsh128/cache-apt-pkgs-action@v1",
With: []KV[any]{
+ {"add-repository", strings.Join(repos, " ")},
{"packages", strings.Join(packages, " ")},
{"version", rev},
{"execute_install_scripts", true},