-
Notifications
You must be signed in to change notification settings - Fork 245
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (40 loc) · 1.26 KB
/
action.yml
File metadata and controls
45 lines (40 loc) · 1.26 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
name: "Run Test Runner"
description: "Execute Kora integration tests using the test runner with specified filters"
inputs:
filters:
description: "Test filters to apply (e.g., '--filter regular --filter auth')"
required: true
verbose:
description: "Enable verbose output"
required: false
default: "true"
rpc-url:
description: "Solana RPC URL to use"
required: false
default: "http://127.0.0.1:8899"
force-refresh:
description: "Force refresh of test accounts"
required: false
default: "false"
runs:
using: "composite"
steps:
- name: Run integration tests with test runner
shell: bash
run: |
echo "🧪 Running integration tests with filters: ${{ inputs.filters }}"
# Build command arguments
ARGS=""
if [ "${{ inputs.verbose }}" = "true" ]; then
ARGS="$ARGS --verbose"
fi
if [ "${{ inputs.force-refresh }}" = "true" ]; then
ARGS="$ARGS --force-refresh"
fi
if [ "${{ inputs.rpc-url }}" != "http://127.0.0.1:8899" ]; then
ARGS="$ARGS --rpc-url ${{ inputs.rpc-url }}"
fi
# Add filters
ARGS="$ARGS ${{ inputs.filters }}"
# Run the test runner
cargo run -p tests --bin test_runner -- $ARGS