chore(deps): update dependency phpunit/phpunit to v11 #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['8.1', '8.2', '8.3'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
ini-values: zend.assertions=1, assert.exception=1 | ||
- name: Validate composer.json | ||
run: composer validate --strict | ||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('composer.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-php-${{ matrix.php-versions }} | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
- name: Run the unit tests | ||
run: | ||
- vendor/bin/phpunit --version | ||
Check failure on line 47 in .github/workflows/test.yml GitHub Actions / TestsInvalid workflow file
|
||
- vendor/bin/phpunit --testdox | ||
- name: Run the doc tests | ||
run: | ||
- vendor/bin/doctest --version | ||
- vendor/bin/doctest | ||
- name: Run linter | ||
run: | ||
- vendor/bin/phpcs --version | ||
- vendor/bin/phpcs -ps | ||
- name: Run static analysis (PHPStan) | ||
run: | ||
- vendor/bin/phpstan --version | ||
- vendor/bin/phpstan | ||
- name: Run static analysis (Psalm) | ||
run: | ||
- vendor/bin/psalm --version | ||
- vendor/bin/psalm |