mirror of
				https://github.com/dockur/windows.git
				synced 2025-11-04 06:15:27 +00:00 
			
		
		
		
	build: Add code quality checks
Added permissions and multiple review actions for linting.
This commit is contained in:
		
							parent
							
								
									f661df3abc
								
							
						
					
					
						commit
						799533bfea
					
				
							
								
								
									
										49
									
								
								.github/workflows/review.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										49
									
								
								.github/workflows/review.yml
									
									
									
									
										vendored
									
									
								
							@ -3,6 +3,11 @@ on:
 | 
			
		||||
 | 
			
		||||
name: "Review"
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: read
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
  checks: write
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  review:
 | 
			
		||||
    name: review
 | 
			
		||||
@ -12,8 +17,50 @@ jobs:
 | 
			
		||||
        name: Checkout
 | 
			
		||||
        uses: actions/checkout@v5
 | 
			
		||||
      -
 | 
			
		||||
        name: Review
 | 
			
		||||
        name: Spelling
 | 
			
		||||
        uses: reviewdog/action-misspell@v1
 | 
			
		||||
        with:
 | 
			
		||||
          locale: "US"
 | 
			
		||||
          level: warning
 | 
			
		||||
          pattern: |
 | 
			
		||||
            *.md
 | 
			
		||||
            *.sh
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
      -
 | 
			
		||||
        name: Hadolint
 | 
			
		||||
        uses: reviewdog/action-hadolint@v1
 | 
			
		||||
        with:
 | 
			
		||||
          level: warning
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
          hadolint_ignore: DL3006 DL3008
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
      -
 | 
			
		||||
        name: YamlLint
 | 
			
		||||
        uses: reviewdog/action-yamllint@v1
 | 
			
		||||
        with:
 | 
			
		||||
          level: warning
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
      -
 | 
			
		||||
        name: ActionLint
 | 
			
		||||
        uses: reviewdog/action-actionlint@v1
 | 
			
		||||
        with:
 | 
			
		||||
          level: warning
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
      -
 | 
			
		||||
        name: Shellformat
 | 
			
		||||
        uses: reviewdog/action-shfmt@v1
 | 
			
		||||
        with:
 | 
			
		||||
          level: warning
 | 
			
		||||
          shfmt_flags: "-i 2 -ci -bn"
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
      -
 | 
			
		||||
        name: Shellcheck
 | 
			
		||||
        uses: reviewdog/action-shellcheck@v1
 | 
			
		||||
        with:
 | 
			
		||||
          level: warning
 | 
			
		||||
          reporter: github-pr-review
 | 
			
		||||
          shellcheck_flags: -x -e SC1091 -e SC2001 -e SC2002 -e SC2034 -e SC2064 -e SC2153 -e SC2317 -e SC2028
 | 
			
		||||
          github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user