Module 9 · In Studio · challenge 3 of 3 in this lesson

challenges/work/deploy_plan.luau sends main to staging, a three-number v tag to production, and every other ref nowhere

A test in Studio grades it and prints a pass code.

Open

Level 3, Professional

Challenge

Write the three decisions a deploy job makes, so each can be tested without a network. Start from the m14-ship tag in the game repo, then run it with game.ServerScriptService.RunGameTests:Invoke("deploy").

The routing rule in the first criterion is a made-up workflow for this exercise, the one from the match question above. Do not use it to predict what Beacon Yard's own deploy.yml does. That file ignores refs: it publishes only from a manual run or a published release, inside the production environment.

Start from
The game at milestone m14 (download)
Grade it
In Studio, press Play, then run game.ServerScriptService.RunGameTests:Invoke("deploy") in the server command bar. Copy the pass code from Output.

Done means

  • challenges/work/deploy_plan.luau sends main to staging, a three-number v tag to production, and every other ref nowhere
  • readOperation tells pending, failed, unpublished and published apart, and keeps the revision and the error message
  • testVerdict counts passes, fails and skips across multi-line log messages, treats silence as a fail, and reports running tasks as running
  • The deploy challenge prints TEST PASS for all eleven checks

The Course Runner prints this code when the test passes.