Skip to content

Commit

Permalink
ci: try use curled runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Oct 19, 2024
1 parent 85faf91 commit 725573c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/reviewdog.yml'
- '.github/workflows/.reviewdog.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/reviewdog.yml'
- '.github/workflows/.reviewdog.yml'

jobs:
review-dog:
Expand All @@ -30,11 +30,13 @@ jobs:
cache: false
- run: go get
- run: go generate ./...
- name: Set Up Golint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.61.0
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Run reviewdog
- name: Run golang-ci & reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEW_DOG_TOKEN }}
run: |
reviewdog -reporter=github-pr-review -runners=golint,govet
golangci-lint run | reviewdog -reporter=github-pr-review -f=golangci-lint
10 changes: 10 additions & 0 deletions .reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# reviewdog.yml
runner:
golint-by-project-conf:
cmd: golint $(go list ./... | grep -v /vendor/)
format: golint
level: warning
govet-by-project-conf:
cmd: go vet
format: govet
level: error

0 comments on commit 725573c

Please sign in to comment.