Skip to content

Commit

Permalink
Allow passthrough of timeout from build-and-test (#158)
Browse files Browse the repository at this point in the history
* allow passthrough of timeout

* added more explanation

* in

* reworded
  • Loading branch information
dcbickfo authored Mar 7, 2024
1 parent 6c91bbe commit b597939
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions go/build-and-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ inputs:
TEST_TAGS:
description: Test tags
required: false
TIMEOUT:
description: A timeout value in seconds. If tests take longer than this, they will fail. Not setting this value will fallback to go test's default of 10 minutes.
required: false
default: ""

runs:
using: "composite"
Expand Down Expand Up @@ -70,6 +74,7 @@ runs:
DB_PORT: ${{ inputs.DB_PORT }}
with:
TAGS: ${{ inputs.TEST_TAGS }}
TIMEOUT: ${{ inputs.TIMEOUT }}
- name: Notify slack channel on failure
if: failure() && inputs.SLACK_CHANNEL_ID != null && github.ref == 'refs/heads/main'
uses: slackapi/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions go/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ inputs:
description: Set of tags to run tests with.
required: false
TIMEOUT:
description: A timeout value. If tests take longer than this, they will fail. Set to an empty string to disable.
description: A timeout value in seconds. If tests take longer than this, they will fail. Not setting this value will fallback to go test's default of 10 minutes.
required: false
default: "30"
default: ""

runs:
using: 'composite'
Expand Down

0 comments on commit b597939

Please sign in to comment.