From 9532b6a4047506073005069ac274de63163aecc6 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 22 Dec 2024 20:46:33 +0100 Subject: [PATCH] Only run `-race -cover` on ubuntu in the CI The coverage information isn't used anywhere in the CI, so no need to have it for every OS. As for `-race`, there is no point in using it everywhere, one time should be enough, especially since it's taking a lot of time on Windows. --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff6d16da8b9..a471ad7a297 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,8 +23,12 @@ jobs: go-version: ${{ matrix.go-version }} - name: Checkout uses: actions/checkout@v4 - - name: Run unit tests + - name: Run unit tests with coverage and race conditions checking + if: matrix.os == 'ubuntu-latest' run: make test + - name: Run unit tests without coverage and race conditions checking + if: matrix.os != 'ubuntu-latest' + run: go test -count=1 ./... integration-tests: name: Integration Tests