1*fb347f35SAndreas Gohr# https://help.github.com/en/categories/automating-your-workflow-with-github-actions 2*fb347f35SAndreas Gohr 3*fb347f35SAndreas Gohrname: "Coding standard check" 4*fb347f35SAndreas Gohr 5*fb347f35SAndreas Gohron: 6*fb347f35SAndreas Gohr pull_request: 7*fb347f35SAndreas Gohr push: 8*fb347f35SAndreas Gohr branches: 9*fb347f35SAndreas Gohr - "development" 10*fb347f35SAndreas Gohr - "test" 11*fb347f35SAndreas Gohr 12*fb347f35SAndreas Gohrjobs: 13*fb347f35SAndreas Gohr 14*fb347f35SAndreas Gohr cs: 15*fb347f35SAndreas Gohr 16*fb347f35SAndreas Gohr name: "Coding standard" 17*fb347f35SAndreas Gohr 18*fb347f35SAndreas Gohr runs-on: ${{ matrix.operating-system }} 19*fb347f35SAndreas Gohr 20*fb347f35SAndreas Gohr strategy: 21*fb347f35SAndreas Gohr matrix: 22*fb347f35SAndreas Gohr php-version: 23*fb347f35SAndreas Gohr - "7.4" 24*fb347f35SAndreas Gohr 25*fb347f35SAndreas Gohr operating-system: [ubuntu-latest] 26*fb347f35SAndreas Gohr 27*fb347f35SAndreas Gohr steps: 28*fb347f35SAndreas Gohr - name: "Checkout" 29*fb347f35SAndreas Gohr uses: "actions/checkout@v2" 30*fb347f35SAndreas Gohr 31*fb347f35SAndreas Gohr - name: "Install PHP" 32*fb347f35SAndreas Gohr uses: "shivammathur/setup-php@v2" 33*fb347f35SAndreas Gohr with: 34*fb347f35SAndreas Gohr coverage: "none" 35*fb347f35SAndreas Gohr php-version: "${{ matrix.php-version }}" 36*fb347f35SAndreas Gohr extensions: "mbstring" 37*fb347f35SAndreas Gohr tools: composer:v2 38*fb347f35SAndreas Gohr 39*fb347f35SAndreas Gohr - name: "Install dependencies" 40*fb347f35SAndreas Gohr run: "composer install --no-interaction --no-progress" 41*fb347f35SAndreas Gohr 42*fb347f35SAndreas Gohr - name: "CS" 43*fb347f35SAndreas Gohr run: composer cs 44