mirror of
				https://github.com/Dadido3/go-typst.git
				synced 2025-11-03 20:59:35 +00:00 
			
		
		
		
	Add golangci-lint to GitHub actions
This commit is contained in:
		
							parent
							
								
									6ecfb61e5b
								
							
						
					
					
						commit
						4ee94ec233
					
				
							
								
								
									
										29
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					name: golangci-lint
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					permissions:
 | 
				
			||||||
 | 
					  contents: read
 | 
				
			||||||
 | 
					  # Optional: allow read access to pull request. Use with `only-new-issues` option.
 | 
				
			||||||
 | 
					  # pull-requests: read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  golangci:
 | 
				
			||||||
 | 
					    name: lint
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Set up Go
 | 
				
			||||||
 | 
					        uses: actions/setup-go@v5
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          go-version: stable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Check out code
 | 
				
			||||||
 | 
					        uses: actions/checkout@v4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Run golangci-lint
 | 
				
			||||||
 | 
					        uses: golangci/golangci-lint-action@v6
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          version: v1.64
 | 
				
			||||||
							
								
								
									
										1
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.vscode/settings.json
									
									
									
									
										vendored
									
									
								
							@ -2,6 +2,7 @@
 | 
				
			|||||||
    "cSpell.words": [
 | 
					    "cSpell.words": [
 | 
				
			||||||
        "Dadido",
 | 
					        "Dadido",
 | 
				
			||||||
        "Foogaloo",
 | 
					        "Foogaloo",
 | 
				
			||||||
 | 
					        "golangci",
 | 
				
			||||||
        "typst",
 | 
					        "typst",
 | 
				
			||||||
        "Vogel"
 | 
					        "Vogel"
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user