Skip to content

Commit 2209966

Browse files
Allow Claude to run tests on CI
1 parent 91ad04a commit 2209966

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/claude.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,25 @@ jobs:
3939
# This is an optional setting that allows Claude to read CI results on PRs
4040
additional_permissions: |
4141
actions: read
42-
42+
4343
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
4444
# model: "claude-opus-4-20250514"
45-
45+
4646
# Optional: Customize the trigger phrase (default: @claude)
4747
# trigger_phrase: "/claude"
48-
48+
4949
# Optional: Trigger when specific user is assigned to an issue
5050
# assignee_trigger: "claude-bot"
51-
51+
5252
# Optional: Allow Claude to run specific commands
53-
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54-
53+
allowed_tools: "Bash(rails test*)"
54+
5555
# Optional: Add custom instructions for Claude to customize its behavior for your project
5656
# custom_instructions: |
5757
# Follow our coding standards
5858
# Ensure all new code has tests
5959
# Use TypeScript for new files
60-
60+
6161
# Optional: Custom environment variables for Claude
6262
# claude_env: |
6363
# NODE_ENV: test
64-

CLAUDE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
55
## Commands
66

77
### Testing
8-
- `rake test` - Run all tests
9-
- `bundle exec rake test` - Run all tests with bundler
10-
- `ruby -Itest test/specific_test.rb` - Run a single test file
8+
- All tests: `rails test:all`
9+
- Unit/integration: `rails test`
10+
- System tests: `rails test:system`
11+
- Single test: `rails test TEST=path/to/test_file.rb:LINE_NUMBER`
1112

1213
### Development
1314
- `bundle install` - Install gem dependencies
@@ -91,4 +92,4 @@ end
9192
- Ruby 3.0+ required
9293
- Depends on `shopify_api` >= 13.4 and `shopify_app` >= 19.0
9394
- Engine integration available for Rails applications
94-
- Webhook functionality is deprecated and will be removed in v3.0
95+
- Webhook functionality is deprecated and will be removed in v3.0

0 commit comments

Comments
 (0)