-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passthrough of timeout from build-and-test (#158)
* allow passthrough of timeout * added more explanation * in * reworded
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters