Skip to content

Commit ba9e670

Browse files
feat: add terratest timeout input for configurable test duration
1 parent d83dc43 commit ba9e670

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/terraform-module-test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ on:
5858
default: 'test'
5959
required: false
6060
type: string
61+
terratest_timeout_in_minutes:
62+
description: 'Timeout for terratest runs in minutes'
63+
default: 60
64+
required: false
65+
type: number
6166
terratest_max_parallel:
6267
description: 'Maximum number of terratest runs that should run simultaneously'
6368
default: 1
@@ -548,7 +553,7 @@ jobs:
548553
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }}
549554
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }}
550555
run: |
551-
go test -v -timeout 30m 2>&1 | tee >(./terratest_log_parser_linux_amd64)
556+
go test -v -timeout ${{ inputs.terratest_timeout_in_minutes }}m 2>&1 | tee >(./terratest_log_parser_linux_amd64)
552557
test ${PIPESTATUS[0]} -eq 0
553558
echo "./out/summary.log"
554559
continue-on-error: true

0 commit comments

Comments
 (0)