Sfoglia il codice sorgente

ci: only run `-race -cover` on Ubuntu

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.
Julien Voisin 1 anno fa
parent
commit
f52411f734
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      .github/workflows/tests.yml

+ 5 - 1
.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