19b152ff9SGreg Roachname: Unit tests 29b152ff9SGreg Roach 39b152ff9SGreg Roachon: [push, pull_request] 49b152ff9SGreg Roach 59b152ff9SGreg Roachjobs: 69b152ff9SGreg Roach run: 7b408d467SGreg Roach if: ${{ !startsWith(github.event.head_commit.message, 'Translation:') }} 89b152ff9SGreg Roach runs-on: ${{ matrix.operating-system }} 99b152ff9SGreg Roach 109b152ff9SGreg Roach strategy: 119b152ff9SGreg Roach matrix: 12*d80c4b28SGreg Roach operating-system: [ubuntu-latest] 13*d80c4b28SGreg Roach php-version: ['7.4', '8.0', '8.1'] 149b152ff9SGreg Roach 159b152ff9SGreg Roach name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} 169b152ff9SGreg Roach 179b152ff9SGreg Roach steps: 189b152ff9SGreg Roach - uses: shivammathur/setup-php@master 199b152ff9SGreg Roach with: 209b152ff9SGreg Roach php-version: ${{ matrix.php-version }} 211792ff1cSGreg Roach extensions: gd,intl,mbstring,sqlite,zip 229b152ff9SGreg Roach coverage: pcov 239b152ff9SGreg Roach 24b6017f99SGreg Roach - uses: actions/checkout@v2 259b152ff9SGreg Roach 269b152ff9SGreg Roach - run: composer validate 279b152ff9SGreg Roach 28b6017f99SGreg Roach - run: composer install --no-progress 299b152ff9SGreg Roach 309b152ff9SGreg Roach - run: vendor/bin/phpunit --coverage-clover=tests/coverage.xml 319b152ff9SGreg Roach 329b152ff9SGreg Roach - uses: codecov/codecov-action@v1 339b152ff9SGreg Roach with: 349b152ff9SGreg Roach token: ${{ secrets.CODECOV_TOKEN }} 359b152ff9SGreg Roach file: tests/coverage.xml 36