feat: Add vet, race and fuzz testing to CI
Adds `go vet`, race detection, and fuzz testing to the GitHub Actions workflow. This will improve the quality and robustness of the codebase.
This commit is contained in:
parent
6faf6d9822
commit
6d9ae98916
1 changed files with 8 additions and 2 deletions
10
.github/workflows/go.yml
vendored
10
.github/workflows/go.yml
vendored
|
|
@ -23,8 +23,14 @@ jobs:
|
|||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v -coverprofile=coverage.out ./...
|
||||
- name: Vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Test (race + coverage)
|
||||
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
|
||||
|
||||
- name: Fuzz (10s)
|
||||
run: go test -run=NONE -fuzz=Fuzz -fuzztime=10s ./...
|
||||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue