Switch to golangci-lint, its faster
This commit is contained in:
		
							parent
							
								
									7a2bce30c7
								
							
						
					
					
						commit
						88af36c520
					
				
							
								
								
									
										13
									
								
								.github/workflows/golangci-lint.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/golangci-lint.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
name: golangci-lint
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  golangci-lint:
 | 
			
		||||
    name: lint
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - name: golangci-lint
 | 
			
		||||
        uses: golangci/golangci-lint-action@v2
 | 
			
		||||
        with:
 | 
			
		||||
          only-new-issues: true
 | 
			
		||||
							
								
								
									
										70
									
								
								.github/workflows/static_check.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										70
									
								
								.github/workflows/static_check.yaml
									
									
									
									
										vendored
									
									
								
							@ -1,70 +0,0 @@
 | 
			
		||||
name: static check
 | 
			
		||||
on: [push, pull_request]
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  imports:
 | 
			
		||||
    name: Imports
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: imports
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  errcheck:
 | 
			
		||||
    name: Errcheck
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: errcheck
 | 
			
		||||
        flags: "-ignoretests"
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  lint:
 | 
			
		||||
    name: Lint
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: lint
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  shadow:
 | 
			
		||||
    name: Shadow
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: shadow
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  staticcheck:
 | 
			
		||||
    name: StaticCheck
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: staticcheck
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
 | 
			
		||||
  sec:
 | 
			
		||||
    name: Sec
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@master
 | 
			
		||||
    - name: check
 | 
			
		||||
      uses: grandcolline/golang-github-actions@v1.1.0
 | 
			
		||||
      with:
 | 
			
		||||
        run: sec
 | 
			
		||||
        token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user