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