Skip to content

Bump github.com/gin-contrib/zap from 0.1.0 to 0.2.0 #55

Bump github.com/gin-contrib/zap from 0.1.0 to 0.2.0

Bump github.com/gin-contrib/zap from 0.1.0 to 0.2.0 #55

Workflow file for this run

name: branch-unit-tests
on:
push:
branches-ignore:
- main
workflow_dispatch:
jobs:
unit-test:
strategy:
## this will contain a matrix of all of the combinations
## we wish to test again:
matrix:
go-version: [1.19.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Verify dependencies
run: go mod verify
- name: Install swag
run: go install github.com/swaggo/swag/cmd/swag@latest
- name: generate swagger doc
run: swag init
- name: Build
run: go build -v ./...
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: Run golint
run: golint ./...
- name: Run tests
run: go test -race -vet=off ./...