name: Unit Tests on: push: branches: - master - "release/**" pull_request: types: ['opened', 'synchronize'] paths: - '**.go' - go.mod - '.github/workflows/**' env: GOPROXY: https://proxy.golang.org,https://gocenter.io,direct jobs: unit-test: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '1.16' - run: cat /etc/issue - run: bash scripts/gogetcookie.sh - run: make vet - run: make test