Module 11 · In Studio · challenge 1 of 3 in this lesson

Build and grade Project 7: ship to staging

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

Open

Level 3, Professional

Challenge

The seven checks run inside Studio only, plus ship_ids_match once the place is published. They cannot see your fork, GitHub Actions or Creator Hub, so a pass code alone proves the build is healthy, not that you shipped. Verify your published staging build with challenges/capstone_ship.luau in Studio, then work through the criteria marked as yours to verify and the CI and staging deploy walkthrough. Solution: challenges/solutions/capstone-ship.md.

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

Done means

  • Pass code: Ids.UNIVERSE_ID and Ids.PLACE_ID are positive numbers from git-ignored Ids.local.luau (ship_ids_set). In your published staging place ship_ids_match also passes: Ids.UNIVERSE_ID equals game.GameId, and game.PlaceId is Ids.PLACE_ID or Ids.YARD_PLACE_ID. In a place that is not published yet, GameId and PlaceId are 0, so ship_ids_match prints TEST SKIP instead of failing, and a skip proves nothing about your ids. node scripts/check-ids.mjs passes
  • Pass code: Workspace.StreamingEnabled is true, LocalizationService.BeaconStrings exists, and all six Remotes exist
  • Pass code: the Config contract numbers and the FlagService.multiplier clamp are intact
  • Pass code: DataService.store() is non-nil, which shows the place is published and Studio Access to API Services is on. It does not show the audience, so you check in Creator Hub that the experience is Private. challenges/capstone_ship.luau must print TEST PASS for all seven checks
  • You verify, the test does not: every job in your fork's ci.yml is green and the `every milestone tag` job reports 15 tags passed, and your deploy run published a new version to your private staging place, visible in Version History

The Course Runner prints this code when the test passes.