Skip to content

Commit

Permalink
Only run -race -cover on ubuntu in the CI
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jvoisin committed Dec 22, 2024
1 parent d345c87 commit 9532b6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9532b6a

Please sign in to comment.