Upgraded PHP version, migrated from phpspec to phpunit #3
This file contains hidden or 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: Quality Assurance | |
| on: | |
| push: | |
| paths: | |
| - src/**/*.php | |
| - composer.json | |
| - .github/workflows/quality-assurance.yml | |
| branches: | |
| - master | |
| - main | |
| pull_request: | |
| paths: | |
| - src/**/*.php | |
| - composer.json | |
| - .github/workflows/quality-assurance.yml | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| phpunit: | |
| name: PHPUnit tests on ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ] | |
| experimental: [false] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer:v2 | |
| - run: composer update --no-progress | |
| - run: composer test |