-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (47 loc) · 1.56 KB
/
action.yml
File metadata and controls
50 lines (47 loc) · 1.56 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
39
40
41
42
43
44
45
46
47
48
49
50
name: 'PHPUnit Retry'
description: 'Intelligently retry failed PHPUnit tests with @depends resolution'
author: 'itznotabug'
branding:
icon: 'repeat'
color: 'purple'
inputs:
command:
description: 'PHPUnit command to execute'
required: true
max_attempts:
description: 'Maximum retry attempts'
required: false
default: '3'
retry_wait_seconds:
description: 'Seconds to wait between retries'
required: false
default: '10'
shell:
description: 'Shell to use for running commands (bash, sh, pwsh, python, cmd, powershell)'
required: false
default: 'bash'
timeout_minutes:
description: 'Timeout in minutes for each test attempt (0 = no timeout)'
required: false
default: '30'
test_dir:
description: 'Base directory for test files in workspace (e.g., "tests" or "vendor/appwrite/server-ce/tests")'
required: true
github_token:
description: 'GitHub token for posting PR comments with test summary. Ensure workflow/job has permissions: contents: read, pull-requests: write'
required: false
job_id:
description: 'GitHub Actions job ID for linking to specific workflow run job (optional, will auto-fetch if github_token has actions: read permission, or pass job ID explicitly)'
required: false
outputs:
total_attempts:
description: 'Total number of attempts made'
exit_code:
description: 'Final exit code'
failed_tests:
description: 'JSON array of failed test names'
success:
description: 'Whether tests eventually passed (true/false)'
runs:
using: 'node20'
main: 'dist/index.js'