diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index ff0079e1..c33ccf7a 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -3,7 +3,7 @@ name: Go Test on: pull_request: push: - branches: ["main"] + branches: [ "main" ] workflow_dispatch: merge_group: @@ -14,6 +14,11 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} cancel-in-progress: true +env: + # Speed-up tests run with race detector by reducing default exit sleep of 1 s to 0. + # See: https://go.dev/doc/articles/race_detector#Options + GORACE: atexit_sleep_ms=0 + jobs: go-test: uses: filecoin-project/unified-github-workflows/.github/workflows/go-test.yml@v1.0