name: Golang Linting on: push: branches: [ main ] pull_request: branches: [ main ] jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: setup golang uses: https://github.com/actions/setup-go@v4 with: go-version: '1.21.x' - name: Testing run: | go test -v ./...