ci: improve CI Robustness and Test Reliability

- Add `-race` flag to the test-tags list in GitHub Actions workflow configuration

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-02-18 15:13:43 +08:00
parent 59fc7c7f08
commit 05c8205225
No known key found for this signature in database

View File

@ -32,7 +32,8 @@ jobs:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
go: ["1.18", "1.19", "1.20", "1.21", "1.22"] go: ["1.18", "1.19", "1.20", "1.21", "1.22"]
test-tags: ["", "-tags nomsgpack", '-tags "sonic avx"', "-tags go_json"] test-tags:
["", "-tags nomsgpack", '-tags "sonic avx"', "-tags go_json", "-race"]
include: include:
- os: ubuntu-latest - os: ubuntu-latest
go-build: ~/.cache/go-build go-build: ~/.cache/go-build