StaffCoder
GitHub Actions

GitHub Actions CI/CD Exercises

Linux CLI
8 modules · 24 challengesSign up
Module 1 of 8 · 3 challenges

Workflow Anatomy & Runners

Write a workflow from jobs and steps: pick a runner, control the shell and working directory, and let a failing command stop the ones after it.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

3 challenges

Wire Up The First Workflow

Sign up to unlock
50%1 of 2 solvedeasy
About this challenge

Write a first GitHub Actions workflow: one job on ubuntu-latest that checks the repository out, runs the linter and then the test suite as named steps in that order, records the run summary in a last step, and stops at the first failing command so that a failing test leaves no report and skips every later step.

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

Shells, Directories And Defaults

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

Rewrite a workflow that navigates with cd into one that declares what each step needs: a job-level defaults.run block for the shared shell and working directory, step-level working-directory and shell overrides for the Python and POSIX shell folders, and two steps that show how the same failing pipe behaves differently under bash and under sh.

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

The Monorepo Check Pipeline

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

Build the check pipeline for a three-folder monorepo: one job on ubuntu-latest that checks the repository out, declares its shared shell and working directory once through defaults.run, checks the bash, Python and POSIX shell folders in order with step-level overrides, compares how the same failing pipe behaves under bash and under sh, writes a check summary last, stops at the first broken check, and contains no cd command.

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

About this path

Learn GitHub Actions hands-on with real workflow runs: triggers, contexts and expressions, job graphs, matrix builds, containers and services, reusable workflows, and pipeline security.

Frequently asked questions

4

What will I practice in this path?

8 modules: Workflow Anatomy & Runners, Triggers & Events, Contexts, Expressions & Variables, Job Orchestration & Conditions, Matrix Strategies, Containers, Services & Artifacts, Reusable Workflows & Custom Actions and Workflow Security.

How many GitHub Actions exercises are there, and how hard are they?

24 exercises: 9 easy, 12 medium and 3 hard.

What does this path run on?

Challenges run on Linux CLI.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

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.