mirror of
				https://github.com/yshui/picom.git
				synced 2025-10-30 23:46:46 -04:00 
			
		
		
		
	github actions: update coding style checks
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
		
							parent
							
								
									be0d4b9681
								
							
						
					
					
						commit
						b37db3e051
					
				
					 2 changed files with 16 additions and 3 deletions
				
			
		
							
								
								
									
										13
									
								
								.github/workflows/coding-style-pr.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								.github/workflows/coding-style-pr.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
name: coding-style
 | 
			
		||||
on: pull_request
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  check:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }}
 | 
			
		||||
    - uses: yshui/git-clang-format-lint@v1.9
 | 
			
		||||
      with:
 | 
			
		||||
        base: ${{ github.event.pull_request.base.sha }}
 | 
			
		||||
							
								
								
									
										6
									
								
								.github/workflows/coding-style.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/coding-style.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,14 +1,14 @@
 | 
			
		|||
name: code-style
 | 
			
		||||
name: coding-style
 | 
			
		||||
on: push
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
  check:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
      with:
 | 
			
		||||
        fetch-depth: 2
 | 
			
		||||
    - uses: yshui/git-clang-format-lint@v1.7
 | 
			
		||||
    - uses: yshui/git-clang-format-lint@v1.9
 | 
			
		||||
      with:
 | 
			
		||||
        base: ${{ github.event.ref }}~1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue