deadlock CI (#475)

* deadlock CI

* make sure the test fails

* remove fail check
This commit is contained in:
David Colburn
2022-02-28 14:48:19 -08:00
committed by GitHub
parent c3a3fb569d
commit a1bef5b18d
2 changed files with 11 additions and 3 deletions
+9 -2
View File
@@ -33,8 +33,15 @@ jobs:
- name: Set up gotestfmt
run: go install github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@latest
- name: Download Go modules
run: go mod download
- name: Replace mutexes
run: |
go get github.com/sasha-s/go-deadlock
grep -rl sync.Mutex ./pkg | xargs sed -i 's/sync\.Mutex/deadlock\.Mutex/g'
grep -rl sync.RWMutex ./pkg | xargs sed -i 's/sync\.RWMutex/deadlock\.RWMutex/g'
go install golang.org/x/tools/cmd/goimports
grep -rl deadlock.Mutex ./pkg | xargs goimports -w
grep -rl deadlock.RWMutex ./pkg | xargs goimports -w
go mod tidy
- name: Mage Build
uses: magefile/mage-action@v1