Skip to content

ci: add smoke workflow against sdk_demo_backend#10

Merged
Taure merged 1 commit into
mainfrom
ci/smoke-workflow
May 1, 2026
Merged

ci: add smoke workflow against sdk_demo_backend#10
Taure merged 1 commit into
mainfrom
ci/smoke-workflow

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented May 1, 2026

Summary

  • Adds .github/workflows/smoke.yml that runs the existing Tests/Runtime/SmokeTest.cs (PlayMode, [UnityTest]) against a freshly-booted widgrensit/sdk_demo_backend on every PR and push to main.
  • The Unity SDK ships as a UPM package, so the workflow scaffolds a minimal Unity 2022.3.50f1 host project under _unity_project/, embeds asobi-unity at Packages/com.asobi.sdk/, and lists it as a testable so the package's PlayMode tests get picked up by game-ci/unity-test-runner@v4.
  • Brings up sdk_demo_backend via docker compose up -d, polls POST /api/v1/auth/register until it responds < 500, runs the test with ASOBI_URL=http://localhost:8084, dumps docker compose logs on failure, and tears down with docker compose down -v in always().
  • Per the canonical SMOKE.md flow (auth + WS, matchmaker → match.matched, input → state) — the test was already updated in feat: smoke test (UnityTest; CI deferred on license activation) #8 / DX sweep: default port 8084, README quickstart fixes (no fake typed events) #9 and is unchanged here.

Required secrets

Before this job can pass, the maintainer must add the following repo secrets (game-ci/unity-test-runner@v4 requirement):

  • UNITY_LICENSE — contents of the activated Unity_v2022.x.ulf license file (personal/plus). For Pro, use UNITY_SERIAL instead — adjust the workflow if so.
  • UNITY_EMAIL — Unity ID email used to activate the license.
  • UNITY_PASSWORD — Unity ID password.

Until those are present the job will fail at the test-runner step with an activation error; the docker bring-up and teardown will still run.

Test plan

  • Maintainer adds UNITY_LICENSE, UNITY_EMAIL, UNITY_PASSWORD to repo secrets.
  • Re-run the smoke job on this PR and confirm the PlayMode test passes against sdk_demo_backend.
  • Confirm docker compose logs are dumped on intentional failure (e.g. break the test temporarily) and that the stack is torn down regardless.

Adds .github/workflows/smoke.yml that runs the existing PlayMode
SmokeTest against a freshly-booted sdk_demo_backend on every PR
and push to main.

The workflow:
- checks asobi-unity out as an embedded UPM package under
  _unity_project/Packages/com.asobi.sdk
- scaffolds a minimal Unity 2022.3.50f1 host project that lists
  the package as a testable
- clones widgrensit/sdk_demo_backend, brings it up via docker compose,
  and waits for /api/v1/auth/register to respond < 500
- runs PlayMode tests via game-ci/unity-test-runner@v4 with
  ASOBI_URL=http://localhost:8084
- dumps docker compose logs on failure and tears the stack down in
  always()

Requires UNITY_LICENSE, UNITY_EMAIL and UNITY_PASSWORD repo secrets
to be configured before the job can pass.
@Taure Taure merged commit 6ddad1f into main May 1, 2026
1 check failed
@Taure Taure deleted the ci/smoke-workflow branch May 1, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant