deadlock CI (#475)

* deadlock CI

* make sure the test fails

* remove fail check
This commit is contained in:
David Colburn authored and GitHub committed 2022-02-28 14:48:19 -08:00
1 parent c3a3fb569d
commit a1bef5b18d
2 files changed
+11 -3

No files matched your search

+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