Skip to content

Add CI workflow for unit and integration tests#2

Merged
DeDuckProject merged 2 commits intomainfrom
claude/enable-tests-in-prs-aGjrD
Mar 11, 2026
Merged

Add CI workflow for unit and integration tests#2
DeDuckProject merged 2 commits intomainfrom
claude/enable-tests-in-prs-aGjrD

Conversation

@DeDuckProject
Copy link
Copy Markdown
Owner

Summary

This PR introduces a GitHub Actions CI workflow to automatically run unit and integration tests on pull requests.

Key Changes

  • Added .github/workflows/ci.yml with two separate jobs:
    • unit-tests: Runs unit tests on Node.js 20 using pnpm
    • integration-tests: Runs integration tests with Playwright, including:
      • Playwright Chromium browser installation
      • Example app server startup
      • Health check polling to ensure app readiness before running tests

Implementation Details

  • Both jobs use Node.js 20 and pnpm for dependency management
  • Integration tests include a robust health check mechanism that polls http://localhost:3000 up to 15 times with 1-second intervals
  • The workflow triggers on pull request open and synchronize events
  • Uses latest versions of standard GitHub Actions (checkout@v4, setup-node@v4, pnpm/action-setup@v4)

https://claude.ai/code/session_0161hwiY52dSwBergfZmniKA

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 11, 2026

🎬 UI Demo Preview

Changes detected in: .github/workflows/ci.yml

What changed: No UI files changed.

No recording available.

Demo script (auto-generated)

Generated by git-glimpse

@DeDuckProject DeDuckProject merged commit 5ac3c4d into main Mar 11, 2026
3 checks passed
@DeDuckProject DeDuckProject deleted the claude/enable-tests-in-prs-aGjrD branch March 11, 2026 18:58
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.

2 participants