This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
build(deps): Auto-update go-utils to latest version #20690
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reviewdog | |
on: [pull_request] | |
jobs: | |
reviewdog: | |
name: reviewdog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "~1.18" | |
id: go | |
- name: Check out code. | |
uses: actions/checkout@v4 | |
- name: Install golangci-lint | |
run: | | |
# binary will be $(go env GOPATH)/bin/golangci-lint | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2 | |
- uses: reviewdog/action-setup@v1.0.6 | |
with: | |
reviewdog_version: latest | |
- name: Run reviewdog | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GO111MODULE: "off" # required for golangci-lint - see https://github.com/keptn/keptn/issues/4000 / https://github.com/golangci/golangci-lint/issues/1833 | |
run: | | |
reviewdog -reporter=github-pr-review |