Skip to content

Test with endroid/qr-code v5 #36

Test with endroid/qr-code v5

Test with endroid/qr-code v5 #36

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
build:
name: PHP ${{ matrix.php-versions }} (${{ matrix.deps }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php-versions: '8.1'
deps: 'lowest'
php-versions:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
deps: ['highest']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, curl, pcov
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.deps }}
- name: Run Tests
run: vendor/bin/phpunit
- name: Upload coverage to Codecov
if: ${{ matrix.php-versions == 8.3 }}
uses: codecov/codecov-action@v4
- name: Run mutation tests
if: ${{ matrix.php-versions == 8.3 }}
env:
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=100 --min-msi=100 -s -j4