Skip to content

Commit

Permalink
github: add invariant tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RaduBerinde committed Jun 16, 2024
1 parent 0bbfbd9 commit 4768e80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
go-version: "${{ matrix.go }}"

- run: go test -tags fifo_invariants ./...
- run: go test ./...

linux-32bit:
Expand All @@ -40,6 +41,7 @@ jobs:
with:
go-version: "${{ matrix.go }}"

- run: go test -tags fifo_invariants ./...
- run: go test ./...

darwin:
Expand All @@ -56,6 +58,7 @@ jobs:
with:
go-version: "${{ matrix.go }}"

- run: go test -tags fifo_invariants ./...
- run: go test ./...

linux-stress:
Expand All @@ -73,7 +76,8 @@ jobs:
go-version: "${{ matrix.go }}"

- run: go install github.com/cockroachdb/stress@latest
- run: go test ./... -exec 'stress -p 4 -maxruns 1000' -v
- run: go test -tags fifo_invariants ./... -exec 'stress -p 2 -maxruns 1000' -v
- run: go test ./... -exec 'stress -p 2 -maxruns 1000' -v

linux-stress-race:
name: go-linux-stress-race
Expand All @@ -90,4 +94,5 @@ jobs:
go-version: "${{ matrix.go }}"

- run: go install github.com/cockroachdb/stress@latest
- run: go test ./... -race -exec 'stress -p 2 -maxruns 100' -v
- run: go test -tags fifo_invariants ./... -race -exec 'stress -p 1 -maxruns 100' -v
- run: go test ./... -race -exec 'stress -p 1 -maxruns 100' -v

0 comments on commit 4768e80

Please sign in to comment.