Skip to content

Commit

Permalink
chore: add timeout for citgm command step (#6149)
Browse files Browse the repository at this point in the history
This also adds a final step that will always run to set the exit code for the citgm
job in the case of the command step timing out during known failures
  • Loading branch information
lukekarrys authored Feb 8, 2023
1 parent 86278c8 commit c606653
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/node-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ jobs:
run: |
npm ls
- name: ${{ join(matrix.commands, ' && ') }}
id: command
continue-on-error: true
timeout-minutes: 10
env: ${{ matrix.env }}
working-directory: ${{ steps.download.outputs.target }}
if: ${{ steps.npm-install.outputs.failed != 'true' }}
Expand Down Expand Up @@ -480,3 +483,10 @@ jobs:
echo "::endgroup::"
done
exit $FINALEXIT
- name: Set conclusion
run: |
EXIT=1
if [[ "${{ steps.command.outcome }}" == "success" || "${{ matrix.flaky }}" == "true" || "${{ matrix.knownFailure }}" == "true" ]]; then
EXIT=0
fi
exit $EXIT

0 comments on commit c606653

Please sign in to comment.