Skip to content

Commit

Permalink
github actions: increase timeout to 60s
Browse files Browse the repository at this point in the history
It's due to macOS GitHub Actions workers that are very underpowered.
  • Loading branch information
maruel committed Oct 17, 2021
1 parent d939c44 commit b51532f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,16 @@ jobs:
# Run tests last since it's potentially the slowest step.
- name: 'Check: go test -cover'
run: go test -timeout=40s -covermode=count -coverprofile coverage.txt ./...
run: go test -timeout=60s -covermode=count -coverprofile coverage.txt ./...
# Don't send code coverage if anything failed to reduce spam.
- uses: codecov/codecov-action@v2
- name: 'Cleanup'
run: rm coverage.txt
# Don't run go test -race if anything failed, to speed up the results.
- name: 'Check: go test -race'
run: go test -timeout=40s -race ./...
run: go test -timeout=60s -race ./...
- name: 'Check: go test -bench .'
run: go test -timeout=40s -bench . -benchtime=100ms -cpu=1 ./...
run: go test -timeout=60s -bench . -benchtime=100ms -cpu=1 ./...

- name: "Check: tree is clean"
run: |
Expand Down

0 comments on commit b51532f

Please sign in to comment.