Skip to content

ci: run independent steps in parallel - #2597

Open
dunglas wants to merge 3 commits into
mainfrom
ci/parallel-steps
Open

ci: run independent steps in parallel#2597
dunglas wants to merge 3 commits into
mainfrom
ci/parallel-steps

Conversation

@dunglas

@dunglas dunglas commented Aug 7, 2026

Copy link
Copy Markdown
Member

GitHub Actions added native parallel steps: https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/

Grouped independent steps that were previously run sequentially for no reason:

  • tests.yaml (tests-linux): the four PHP-8.5-only lint/tidy checks (Go lint, Caddy module Go lint, go.mod tidy check, caddy/go.mod tidy check)
  • windows.yaml (build): vcpkg install, Watcher download, PHP download — all independent and only consumed later by Prepare env
  • docker.yaml (build): builder/runner metadata artifact uploads, which write to disjoint paths

Each group now takes as long as its slowest step instead of the sum of all of them.

Not touched:

  • The -race test steps in tests.yaml, to avoid CPU contention on shared runners affecting the race detector
  • The static.yaml manifest-push chains, since each side is itself a 2-step sequential chain rather than a single step

This is a brand-new (~6 weeks old) Actions feature not yet in the main workflow-syntax docs, so worth watching the first few CI runs closely — in particular whether lint.yaml's super-linter accepts the new parallel key.

dunglas added 3 commits August 7, 2026 17:15
GitHub Actions now supports running job steps concurrently via the
parallel key. Group independent lint/tidy checks, Windows dependency
downloads, and Docker metadata uploads so each job's wall time drops
to the slowest step in the group instead of their sum.
golangci-lint holds a lock across concurrent runs on the same machine
and errors out rather than serializing ("parallel golangci-lint is
running"), so keep the two lint steps sequential and only parallelize
the two independent go.mod tidy checks.

actionlint (bundled in super-linter v8.7.0) doesn't recognize the new
"parallel" step key yet and fails the syntax check, so disable
VALIDATE_GITHUB_ACTIONS until it's updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant