Skip to content

Update phpunit/phpunit requirement from ^9.5.3 to ^11.4.0 #46

Update phpunit/phpunit requirement from ^9.5.3 to ^11.4.0

Update phpunit/phpunit requirement from ^9.5.3 to ^11.4.0 #46

Workflow file for this run

name: PHP Composer
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.0, 7.4]
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-
- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-suggest
- name: Run Tests
run: composer run-script test
- name: Upload Coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
rm -rf composer.* vendor/
composer require php-coveralls/php-coveralls
vendor/bin/php-coveralls