6/71
Sign inSign up free

598. Run CI on the Right Events

easy 10 XP ~6 minHands-on lab

The repository /home/student/repos/docs-site has a workflow in .github/workflows/ci.yml. It runs on every push to every branch, which burns CI minutes on throwaway branches, and it never runs on pull requests, so reviewers don't see test results.

Task

Change only the triggers (on:) of ci.yml so the workflow runs:

  • on pushes to main only,
  • on pull requests that target main,
  • when started by hand from the Actions tab,
  • every Monday at 06:00 UTC (a weekly run catches breakage from dependency updates).

Keep the test job as it is. There's no GitHub here: the grader reads your YAML.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.