Skip to content

Commit

Permalink
Merge pull request #643 from intersystems/master-ci-parametrize-timeout
Browse files Browse the repository at this point in the history
feat(ci): allow parameterization of package test timeout
  • Loading branch information
isc-shuliu authored Dec 4, 2024
2 parents ac53d10 + ccc0e3d commit d662090
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
required: true
type: number
default: 1
timeoutSeconds:
description: "Timeout in seconds for each test"
required: true
type: number
default: 120

jobs:
matrix-setup:
Expand Down Expand Up @@ -114,7 +119,7 @@ jobs:
echo "::group::Test package $package"
set +e
timeout 60s docker exec -i $CONTAINER iris session IRIS <<- EOF
timeout ${{ inputs.timeoutSeconds }}s docker exec -i $CONTAINER iris session IRIS <<- EOF
zpm "install $package":1
zpm "$package test -only ${{ env.test-flags }}":1:1
halt
Expand Down

0 comments on commit d662090

Please sign in to comment.