Skip to content

Commit

Permalink
ci: only run -race -cover on Ubuntu
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 authored Dec 23, 2024
1 parent b93543f commit f52411f
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 f52411f

Please sign in to comment.