Commit 986f9a7
Add GitHub Actions workflow to run tests on pull requests (#11)
* Add GitHub Actions workflow to run tests on pull requests
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.
* Refactor e2e tests workflow to run directly in GHA
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.
* Simplify e2e tests workflow by merging shell steps
Combine token generation, gh auth setup, and test execution into a single
step to avoid step dependencies with inputs/outputs.
* Move get_github_app_token.py to tests directory
The script is shared test infrastructure used by both Claude Code
and GitHub Actions, so it belongs in tests/ rather than .claude/.
* Use vars.GH_APP_ID instead of secrets (App ID is public)
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent b31ace1 commit 986f9a7
3 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
File renamed without changes.
0 commit comments