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