diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8773306ad..ad1c30cf4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -168,22 +168,21 @@ jobs: - name: Build Metric Adapter run: make metric-adapter - golangci: - name: lint + reviewdog: + name: reviewdog runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup Go environment - uses: actions/setup-go@v3.0.0 - with: - # The Go version to download (if necessary) and use. Supports semver spec and ranges. - go-version: 1.17 # optional - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: v1.45.2 - - # Optional: golangci-lint command line arguments. - args: --timeout 30m --disable-all -E deadcode -E unused -E varcheck -E ineffassign -E goimports -E gofmt -E misspell -E unparam -E unconvert -E govet -E errcheck -E structcheck + uses: reviewdog/action-golangci-lint@v2 + with: + go_version: "1.17" + github_token: ${{ secrets.GITHUB_TOKEN }} + # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. + reporter: github-pr-review + # Report all results. + filter_mode: nofilter + # Exit with 1 when it find at least one finding. + fail_on_error: true + golangci_lint_version: v1.45.2 \ No newline at end of file diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml deleted file mode 100644 index 528738486..000000000 --- a/.github/workflows/reviewdog.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: reviewdog -on: [pull_request] -jobs: - golangci-lint: - name: runner / golangci-lint - runs-on: ubuntu-latest - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - - name: golangci-lint - uses: reviewdog/action-golangci-lint@v2 - with: - go_version: "1.17" - github_token: ${{ secrets.GITHUB_TOKEN }} - # Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review]. - reporter: github-pr-review - # Report all results. - filter_mode: nofilter - # Exit with 1 when it find at least one finding. - fail_on_error: true - golangci_lint_version: v1.45.2 diff --git a/bin/crane-agent b/bin/crane-agent new file mode 100755 index 000000000..107b1d1e8 Binary files /dev/null and b/bin/crane-agent differ