From 5631795bb9d8c13fcd9050b4ff6dd5ca0fca668a Mon Sep 17 00:00:00 2001 From: Anders Eknert Date: Mon, 4 Nov 2024 15:01:53 +0100 Subject: [PATCH] actions: run race detector separately (#1237) As this is takes too much time to run serially Signed-off-by: Anders Eknert --- .github/workflows/build.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f030b588..dbf47cba 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -59,8 +59,6 @@ jobs: path: ~/go/bin/rq key: ${{ runner.os }}-${{ runner.arch }}-go-rq-${{ env.RQ_VERSION }} - run: build/do.rq pull_request - - run: go test -race ./... - if: matrix.os.name == 'linux' - uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 if: matrix.os.name == 'linux' with: @@ -70,6 +68,15 @@ jobs: name: regal-${{ matrix.os.name }} path: regal + race_detector: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 + with: + go-version-file: go.mod + - run: go test -race ./... + code_coverage: runs-on: ubuntu-latest steps: