name: lint on: push: branches: [ main ] pull_request: branches: [ main ] jobs: golangci-lint: runs-on: ubuntu-latest steps: - uses: actions/setup-go@v3 with: go-version: 1.18 - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: v1.50.0