Skip to content

Commit 13fecfa

Browse files
nhortonclaude
andauthored
Add pull_request trigger to integration tests with skip on non-merge-queue (#51)
The workflow now triggers on all pull requests so it shows as a required check, but both jobs skip their execution unless running in merge_group or workflow_dispatch. This ensures PRs show passing checks without running expensive tests on every PR update. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 29df4d9 commit 13fecfa

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/claude-code-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
required: false
1010
default: 'false'
1111
type: boolean
12+
# Run on all PRs (shows as check, but steps skip unless in merge queue)
13+
pull_request:
1214
# Run in the merge queue to validate before merging
1315
merge_group:
1416

@@ -18,9 +20,11 @@ concurrency:
1820
cancel-in-progress: true
1921

2022
jobs:
21-
# Job 1: Validate command generation from fixtures (always runs, no API key needed)
23+
# Job 1: Validate command generation from fixtures (no API key needed)
24+
# Runs on merge_group and workflow_dispatch, skipped on PRs (shows as passing check)
2225
validate-generation:
2326
runs-on: ubuntu-latest
27+
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
2428
steps:
2529
- uses: actions/checkout@v4
2630

@@ -80,10 +84,11 @@ jobs:
8084
8185
# Job 2: Full end-to-end test with Claude Code
8286
# Tests the COMPLETE workflow: define job -> implement -> execute
87+
# Runs on merge_group and workflow_dispatch, skipped on PRs (shows as passing check)
8388
claude-code-e2e:
8489
runs-on: ubuntu-latest
8590
needs: validate-generation
86-
if: github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group'
91+
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
8792
env:
8893
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
8994
steps:

0 commit comments

Comments
 (0)