name: lint on: push: branches: [ main ] pull_request: branches: [ main ] jobs: golangci-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: version: v1.35.2