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 name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} 10 11 strategy: 12 matrix: 13 operating-system: ['ubuntu-latest'] 14 php-version: ['8.2', '8.3', '8.4'] 15 fail-fast: false 16 17 steps: 18 - uses: shivammathur/setup-php@master 19 with: 20 php-version: ${{ matrix.php-version }} 21 ini-file: 'development' 22 extensions: gd,intl,mbstring,sqlite,zip 23 coverage: pcov 24 25 - uses: actions/checkout@v4 26 27 - run: composer validate 28 29 - run: composer install --no-progress 30 31 - run: vendor/bin/phpunit --coverage-clover=tests/coverage.xml 32 33 - uses: codecov/codecov-action@v4 34 with: 35 token: ${{ secrets.CODECOV_TOKEN }} 36 file: tests/coverage.xml 37