Skip to content

Merge pull request #104 from codelicia/renovate/actions-add-to-projec… #270

Merge pull request #104 from codelicia/renovate/actions-add-to-projec…

Merge pull request #104 from codelicia/renovate/actions-add-to-projec… #270

Workflow file for this run

name: Run CI
on: push
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install dependencies
run: composer install --prefer-dist --classmap-authoritative
- name: Check code style
run: composer run style-check -- -q --report=checkstyle | ./vendor/bin/cs2pr
- name: Run unit tests
run: composer run test-unit
- name: Run mutation tests
run: |
composer run test-unit -- --coverage-xml cov --log-junit=cov/result.junit.xml
composer run test-mutation -- --coverage=cov
env:
XDEBUG_MODE: coverage
- name: Check dependency usage
run: composer run composer-check