remove the fix that didn't fix it... #7
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: Automated Tests | |
on: | |
push: | |
branches: | |
- master | |
- main | |
tags: | |
- '*' | |
pull_request: | |
jobs: | |
tests: | |
name: Unit Tests (PHP ${{ matrix.php }}) | |
strategy: | |
matrix: | |
php: ['8.2', '8.3', '8.4'] | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: vendor-${{ hashFiles('composer.json') }} | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: pcov | |
- uses: php-actions/composer@v6 | |
- run: vendor/bin/phpunit tests --coverage-text --coverage-filter src | |
static: | |
name: Static Analysis | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: vendor-${{ hashFiles('composer.json') }} | |
- uses: php-actions/composer@v6 | |
- run: ./vendor/bin/phpstan analyse src --level 5 | |
format: | |
name: Formatting | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: vendor-${{ hashFiles('composer.json') }} | |
- uses: php-actions/composer@v6 | |
- run: ./vendor/bin/phpcs |