Skip to content

Commit

Permalink
chore: increase timeout for go test and GH action steps (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Aug 9, 2023
1 parent 291b4e2 commit 8655ed6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
if: ${{ inputs.platform == 'ubuntu-latest' }}
working-directory: ./${{ inputs.project-directory }}
timeout-minutes: 30
run: |
go install gotest.tools/gotestsum@latest
make test-unit
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ jobs:
run: go build

- name: go test
timeout-minutes: 30
run: |
go install gotest.tools/gotestsum@latest
gotestsum --format short-verbose --rerun-fails=5 --packages="./..." --junitfile TEST-unit.xml
gotestsum --format short-verbose --rerun-fails=5 --packages="./..." --junitfile TEST-unit.xml -- -timeout=30m
- name: Create success status
uses: actions/github-script@0.9.0
Expand Down
4 changes: 3 additions & 1 deletion commons-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ test-%:
--format short-verbose \
--rerun-fails=5 \
--packages="./..." \
--junitfile TEST-$*.xml
--junitfile TEST-$*.xml \
-- \
-timeout=30m

.PHONY: tools
tools:
Expand Down

0 comments on commit 8655ed6

Please sign in to comment.