File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,15 @@ jobs:
1515        go-version : 1.24 
1616    - name : Check out code into the Go module directory 
1717      uses : actions/checkout@v4 
18-     - name : Lint, test and build 
18+     - name : Lint 
19+       run : make lint 
20+     - name : Format 
21+       run : make format && git diff --exit-code 
22+     - name : Test 
23+       run : make test 
24+     - name : Build 
1925      run : | 
2026
21-         # Install staticcheck for linting 
22-         go install honnef.co/go/tools/cmd/[email protected]  23- 
24-         # Lint and format 
25-         make lint 
26-         make format 
27- 
28-         # Exit if after formatting there are any code differences 
29-         git diff --exit-code 
30- 
31-         # Run tests 
32-         make test 
33- 
34-         # Build and package 
3527        if [ ${{ github.event_name }} == "release" ]; then 
3628          VERSION="${{ github.event.release.tag_name }}" 
3729        else 
Original file line number Diff line number Diff line change 4848
4949lint :
5050	@echo " =============Linting=============" 
51- 	staticcheck ./...
51+ 	go run honnef.co/go/tools/cmd/ staticcheck@v0.6.0  ./...
5252
5353format :
5454	@echo " =============Formatting=============" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments