diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce1611c..0b67a10 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,18 +28,21 @@ jobs: go: ['stable', 'oldstable'] steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Install Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} check-latest: true - - name: Check out code - uses: actions/checkout@v3 - - name: Go Format run: gofmt -s -w . && git diff --exit-code + - name: Go Vet + run: go vet ./... + - name: Go Tidy run: go mod tidy && git diff --exit-code @@ -63,6 +66,10 @@ jobs: if: ${{ !inputs.skipTests }} run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.txt ./... + - name: Go Benchmark + if: ${{ !inputs.skipTests }} + run: go test -v -shuffle=on -run=- -bench=. -benchtime=1x ./... + - name: Upload Coverage if: ${{ !inputs.skipTests }} uses: codecov/codecov-action@v3