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 }} 965420c9cSGreg Roach name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} 109b152ff9SGreg Roach 119b152ff9SGreg Roach strategy: 129b152ff9SGreg Roach matrix: 13e9bf9257SGreg Roach operating-system: ['ubuntu-latest'] 14*19ceb1bcSGreg Roach php-version: ['8.2', '8.3', '8.4'] 15afa2be90SGreg Roach fail-fast: false 169b152ff9SGreg Roach 179b152ff9SGreg Roach steps: 189b152ff9SGreg Roach - uses: shivammathur/setup-php@master 199b152ff9SGreg Roach with: 209b152ff9SGreg Roach php-version: ${{ matrix.php-version }} 215666a2e2SGreg Roach ini-file: 'development' 221792ff1cSGreg Roach extensions: gd,intl,mbstring,sqlite,zip 239b152ff9SGreg Roach coverage: pcov 249b152ff9SGreg Roach 25e9bf9257SGreg Roach - uses: actions/checkout@v4 269b152ff9SGreg Roach 279b152ff9SGreg Roach - run: composer validate 289b152ff9SGreg Roach 29b6017f99SGreg Roach - run: composer install --no-progress 309b152ff9SGreg Roach 319b152ff9SGreg Roach - run: vendor/bin/phpunit --coverage-clover=tests/coverage.xml 329b152ff9SGreg Roach 3327cc35d7SGreg Roach - uses: codecov/codecov-action@v4 349b152ff9SGreg Roach with: 359b152ff9SGreg Roach token: ${{ secrets.CODECOV_TOKEN }} 369b152ff9SGreg Roach file: tests/coverage.xml 37