Skip to content

chore(deps-dev): bump phpunit/phpunit from 9.6.16 to 9.6.17 #588

chore(deps-dev): bump phpunit/phpunit from 9.6.16 to 9.6.17

chore(deps-dev): bump phpunit/phpunit from 9.6.16 to 9.6.17 #588

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
php-version:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.php-version }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Lint
run: |
vendor/bin/phpcs -s
PHP_CS_FIXER_IGNORE_ENV=True vendor/bin/php-cs-fixer fix --diff --dry-run
- name: PHPUnit
run: |
vendor/bin/phpunit --colors --coverage-text --coverage-clover coverage/clover.xml
- name: Upload coverage
uses: codecov/codecov-action@v4
if: success()
with:
file: ./coverage/clover.xml