diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa1e509..e2595aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,14 @@ jobs: fail-fast: true steps: - - name: Check out code + - name: Checkout Code uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: go-version-file: 'go.mod' + cache: true - name: Go Format run: gofmt -w . && git diff --exit-code @@ -51,9 +52,6 @@ jobs: - name: Go Build run: go build -o /dev/null ./... - - name: Go Compile Tests - run: go test -exec /bin/true ./... - - name: Go Test run: go test -v -count=1 -race -shuffle=on ./... @@ -61,4 +59,7 @@ jobs: run: go test -v -shuffle=on -run=- -bench=. -benchtime=1x ./... - name: Go Vuln Check - run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck -test ./... \ No newline at end of file + run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck -test ./... + + - name: Go Deadcode + run: go install golang.org/x/tools/cmd/deadcode@latest && deadcode ./...