Skip to content

build: Add PHPStan report to SonarCloud #83

build: Add PHPStan report to SonarCloud

build: Add PHPStan report to SonarCloud #83

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
tags-ignore:
- '*'
jobs:
tests:
name: Tests
runs-on: 'ubuntu-latest'
strategy:
matrix:
php-versions: [ '8.2', '8.3' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
extensions: mbstring, intl, fileinfo, sqlite3, pdo_sqlite
- name: Install dependencies with composer
run: composer update --no-ansi --no-interaction --no-progress
- name: Run tests with phpunit/phpunit
run: vendor/bin/phpunit --coverage-clover=coverage.xml
mutation:
name: Mutation Testing
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP with Xdebug
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: xdebug
extensions: mbstring, intl, fileinfo, sqlite3, pdo_sqlite
- name: Install dependencies with composer
run: composer update --no-ansi --no-interaction --no-progress
- name: Run mutation tests
run: vendor/bin/infection --min-covered-msi=80