Skip to content

ci: run the unit tests on pull requests - #338

Merged
kikootwo merged 2 commits into
mainfrom
chore/pr-ci
Oct 19, 2026
Merged

kikootwo merged 2 commits into
mainfrom
chore/pr-ci

Conversation

@kikootwo

Copy link
Copy Markdown
Owner

What changed

Adds .github/workflows/pr-ci.yml: on every pull request it runs npm ci, npx prisma generate and npm test on Node 20.

  • Triggered by pull_request only, with read-only contents permission and no secrets.
  • Actions are pinned to commit SHAs, and checkout does not keep credentials.
  • A new push to the same PR cancels the earlier run.

documentation/testing.md now lists both workflows (the manual run-tests.yml and this one).

Why

Contributor PRs had no automatic test run, so breakage showed up only after merge.

Evidence

All seven repo-hygiene branches were merged together on top of main 99fabde and checked as one tree. None of them change application code.

Full logs: https://gist.github.com/kikootwo/f44b987c5a36000516078756e1b0cb6b

Checks

  • Image build (dockerfile.unified): PASS
  • Unit suite (Node 20, 2635 tests): PASS

Risk and rollback

CI only; it doesn't touch the app. Revert to remove the check.

🤖 Generated with Claude Code

kikootwo and others added 2 commits October 19, 2026 13:47
Runs npm ci, prisma generate and the full npm test on every pull request, with ffmpeg installed so the real-ffmpeg integration tests run. Read-only token, no secrets, actions pinned to commit SHAs, and one run per PR at a time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
testing.md named a manual-tests.yml workflow that doesn't exist. List run-tests.yml and the new pr-ci.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kikootwo
kikootwo merged commit 064c3ce into main Oct 19, 2026
1 check passed
@kikootwo
kikootwo deleted the chore/pr-ci branch October 19, 2026 18:32
kikootwo added a commit that referenced this pull request Oct 19, 2026
.dockerignore: keep main's redis + .claude entries and the e2e/ line.
documentation/testing.md: list all three workflows plus the e2e harness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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