From e21a4c7d64b49f01aa96483e60d331d75e27d633 Mon Sep 17 00:00:00 2001 From: Francis Stephens Date: Fri, 17 Jan 2025 17:20:09 +1300 Subject: [PATCH] Install and run gcassert tool in github workflow This allows us to assert that specific lines of code don't allocate or that method calls are inlined. --- .github/workflows/go.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 64eca4c..8694f55 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,5 +27,10 @@ jobs: - name: Test run: go test -v -short ./... + - name: Run gcassert + run: | + go install github.com/jordanlewis/gcassert/cmd/gcassert@latest + $(go env GOPATH)/bin/gcassert ./... + - name: Check code quality uses: dominikh/staticcheck-action@v1