-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.01 KB
/
Copy pathclaude-test.yml
File metadata and controls
38 lines (33 loc) · 1.01 KB
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
# Test workflow for Claude Code GitHub Action
# Use this to verify Claude integration is working before using in other workflows
name: Claude Test
on:
workflow_dispatch:
inputs:
prompt:
description: 'Prompt to send to Claude'
required: false
default: 'Say hello and confirm you can access this repository. List 3 files you can see.'
type: string
jobs:
test-claude:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Test Claude Code Action
id: claude
uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: ${{ inputs.prompt }}
claude_args: "--max-turns 3"
- name: Test complete
run: |
echo "Claude test completed successfully"
echo "Claude response received"