From 17495dfeb91bd9b48acb052e54015a14516d2de0 Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Sun, 15 Dec 2024 10:33:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Run=20race=20detector=20on=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Salim Afiune Maya --- .github/workflows/main-benchmark.yml | 2 +- .github/workflows/pr-test-lint.yml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main-benchmark.yml b/.github/workflows/main-benchmark.yml index e7d31ef9f4..0fbf8eec86 100644 --- a/.github/workflows/main-benchmark.yml +++ b/.github/workflows/main-benchmark.yml @@ -63,4 +63,4 @@ jobs: uses: actions/cache/save@v4 with: path: ./cache - key: ${{ runner.os }}-benchmark-${{ github.run_id }} \ No newline at end of file + key: ${{ runner.os }}-benchmark-${{ github.run_id }} diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index a46d51920b..33490eb187 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -128,6 +128,24 @@ jobs: name: test-results-cli path: report.xml + go-race: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Import environment variables from file + run: cat ".github/env" >> $GITHUB_ENV + + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ">=${{ env.golang-version }}" + cache: false + + - name: Run race detector on selected packages + run: make race/go + go-bench: runs-on: ubuntu-latest if: github.ref != 'refs/heads/main'