HP-2676: Fix issues caused by HP-2581 release: tariff view error, failing CI jobs, and SinglePrice type error #681
Workflow file for this run
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: phpunit-tests | |
| on: | |
| push: | |
| pull_request: | |
| schedule: | |
| - cron: "0 9 * * 1" | |
| jobs: | |
| PHPUnit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['8.3'] | |
| coverage-driver: [pcov] | |
| name: PHP ${{ matrix.php }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: gmp | |
| coverage: pcov | |
| tools: composer:v2, infection | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
| - name: Update composer | |
| run: composer self-update | |
| - name: Composer install | |
| if: steps.composer-cache.outputs.cache-hit != 'true' | |
| run: composer install -n | |
| - name: PHPUnit | |
| run: vendor/bin/phpunit | |
| env: | |
| XDEBUG_MODE: coverage |