StaffCoder
GitHub Actions
8 modules · 24 challengesSign up
Module 5 of 8 · 3 challenges

GitHub Actions Matrix Strategies

Run one job across a grid: fixed axes, include and exclude, a matrix built from another job's output, and bounded parallelism.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

3 challenges

Cross-Version Test Matrix

Sign up to unlock
—No data yetmedium
About this challenge

Turn a suite that runs once against one interpreter version into a matrix over three versions and two base images, with one combination excluded and one extra experimental cell included, capped at two cells running at a time and with a failing cell not stopping its siblings. The cell nominated to fail is chosen per grade, and the cells' recorded timings are read back, so a single job working through the combinations in sequence does not pass.

Solved in a browser IDE and graded by tests. Sign up to solve

Dynamic Matrix from Job Outputs

Sign up to unlock
—No data yetmedium
About this challenge

Replace a workflow that builds one hardcoded service with a matrix whose legs come from a manifest read at run time: a job publishes the service list as a JSON job output and the build job expands it with fromJSON. The service names are invented per grade, one of them carrying a space and quotation marks, so the list cannot be written into the workflow and must survive the round trip intact.

Solved in a browser IDE and graded by tests. Sign up to solve

Multi-Target Build Grid

STAR
Solving it completes the module
—No data yetmedium
About this challenge

Build a grid whose target dimension comes from a manifest read at run time and whose version dimension is fixed, with one combination excluded, one experimental cell included, at most two cells building at once, a failing cell that does not stop its siblings, an empty manifest that builds nothing without failing, and the grid's outcome recorded once by a job after it. The manifest and the failing cell are chosen per grade and the cells' recorded timings are read back, so neither a hardcoded grid nor one job working through the combinations in sequence passes.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.