1name: Unit tests 2 3on: [push, pull_request] 4 5jobs: 6 run: 7 if: ${{ !startsWith(github.event.head_commit.message, 'Translation: ') }} 8 runs-on: ${{ matrix.operating-system }} 9 10 strategy: 11 matrix: 12 operating-system: [ubuntu-20.04] 13 php-version: ['7.4', '8.0'] 14 15 name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} 16 17 steps: 18 - uses: shivammathur/setup-php@master 19 with: 20 php-version: ${{ matrix.php-version }} 21 extensions: gd,intl,mbstring,sqlite,zip 22 coverage: pcov 23 24 - uses: actions/checkout@v2 25 26 - run: composer validate 27 28 - run: composer install --no-progress 29 30 - run: vendor/bin/phpunit --coverage-clover=tests/coverage.xml 31 32 - uses: codecov/codecov-action@v1 33 with: 34 token: ${{ secrets.CODECOV_TOKEN }} 35 file: tests/coverage.xml 36