Skip to content

Add GitHub Actions workflow to run tests on pull requests#11

Merged
Phlogistique merged 5 commits into
mainfrom
claude/github-actions-tests-Xv4Km
Dec 25, 2025
Merged

Add GitHub Actions workflow to run tests on pull requests#11
Phlogistique merged 5 commits into
mainfrom
claude/github-actions-tests-Xv4Km

Conversation

@Phlogistique
Copy link
Copy Markdown
Collaborator

Run unit tests and e2e tests automatically when a PR is opened or updated.
E2E tests only run on PRs from the same repository (not forks) since they
require GitHub App credentials.

Run unit tests and e2e tests automatically when a PR is opened or updated.
E2E tests only run on PRs from the same repository (not forks) since they
require GitHub App credentials.
The .claude/run-e2e-tests.sh script was designed for Claude Code environment
which requires installing gh CLI. In GitHub Actions, gh is pre-installed.

Now the workflow directly:
- Generates the GitHub App token using the Python script
- Sets up gh authentication
- Runs the e2e tests

This avoids unnecessary gh installation and keeps the Claude-specific
script separate from CI.
Combine token generation, gh auth setup, and test execution into a single
step to avoid step dependencies with inputs/outputs.
The script is shared test infrastructure used by both Claude Code
and GitHub Actions, so it belongs in tests/ rather than .claude/.
@Phlogistique Phlogistique merged commit 986f9a7 into main Dec 25, 2025
3 of 4 checks passed
@github-actions github-actions Bot deleted the claude/github-actions-tests-Xv4Km branch December 25, 2025 13:17
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