Skip to content

test: Improve mutation score by strengthening tests #133

test: Improve mutation score by strengthening tests

test: Improve mutation score by strengthening tests #133

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
name: PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: pcov
php-version: ${{ matrix.php-version }}
tools: pecl, composer:v2
extensions: mongodb
- name: Composer config
run: composer config --no-plugins allow-plugins.infection/extension-installer true
- name: Composer install
run: composer install --no-interaction --no-progress
- name: PHPUnit
run: ./vendor/bin/phpunit --coverage-clover coverage.xml
- name: PHPStan
run: ./vendor/bin/phpstan analyse --no-progress --no-interaction
- name: Infection
run: ./vendor/bin/infection --no-progress
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
- name: Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml