Initial Drupal 11 with DDEV setup
This commit is contained in:
		
							
								
								
									
										33
									
								
								vendor/composer/installers/.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								vendor/composer/installers/.github/workflows/lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
name: "PHP Lint"
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  - push
 | 
			
		||||
  - pull_request
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  tests:
 | 
			
		||||
    name: "Lint"
 | 
			
		||||
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        php-version:
 | 
			
		||||
          - "7.2"
 | 
			
		||||
          - "latest"
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: "Checkout"
 | 
			
		||||
        uses: "actions/checkout@v2"
 | 
			
		||||
 | 
			
		||||
      - name: "Install PHP"
 | 
			
		||||
        uses: "shivammathur/setup-php@v2"
 | 
			
		||||
        with:
 | 
			
		||||
          coverage: "none"
 | 
			
		||||
          php-version: "${{ matrix.php-version }}"
 | 
			
		||||
 | 
			
		||||
      - name: "Lint PHP files"
 | 
			
		||||
        run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"
 | 
			
		||||
		Reference in New Issue
	
	Block a user