switch from reviewdog to golangci-lint
This commit is contained in:
		
							parent
							
								
									e46ffe68fe
								
							
						
					
					
						commit
						2cb8f60ac2
					
				
							
								
								
									
										25
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
| name: golangci-lint | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - main | ||||
|       - master | ||||
|   pull_request: | ||||
| 
 | ||||
| permissions: | ||||
|   contents: read | ||||
|   pull-requests: read | ||||
| 
 | ||||
| jobs: | ||||
|   golangci: | ||||
|     name: lint | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|       - uses: actions/setup-go@v5 | ||||
|         with: | ||||
|           go-version: stable | ||||
|       - name: golangci-lint | ||||
|         uses: golangci/golangci-lint-action@v7 | ||||
|         with: | ||||
|           version: v2.0 | ||||
							
								
								
									
										22
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
								
							| @ -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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
| 
 | ||||
|       - name: golangci-lint | ||||
|         uses: reviewdog/action-golangci-lint@3dfdce20f5ca12d264c214abb993dbb40834da90 # v2.7.2 | ||||
| 
 | ||||
|       - name: gofumpt -s with reviewdog | ||||
|         env: | ||||
|           REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         run: | | ||||
|           go install mvdan.cc/gofumpt@v0.2.0 | ||||
|           gofumpt -e -d . | \ | ||||
|           reviewdog -name="gofumpt" -f=diff -f.diff.strip=0 -reporter=github-pr-review | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jinzhu
						Jinzhu