Skip to content

Merge pull request #51 from bavix/dependabot/github_actions/bavix/dot… #88

Merge pull request #51 from bavix/dependabot/github_actions/bavix/dot…

Merge pull request #51 from bavix/dependabot/github_actions/bavix/dot… #88

Workflow file for this run

name: phpunits
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
units:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [8.2, 8.3]
steps:
- name: Checkout
id: git-checkout
uses: actions/checkout@v4
- name: Setup PHP
id: php-install
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, pgsql, mysql, sqlite, redis, memcached
coverage: pcov
- name: Validate composer.json and composer.lock
id: composer-validate
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
id: composer-dependencies
run: composer install --prefer-dist --no-progress
- name: Prepare run test suite
id: unit-prepare
run: |
mkdir build
- name: Run test suite
id: unit-run
run: composer parabench
- name: Run mutation test suite
id: infect-run
run: composer infect