name: Tests on: push: # Publish `master` as Docker `latest` image. branches: tags: # Run tests for any PRs. pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '1.15' - name: test run: go test ./... - name: vet run: go vet ./...