Skip to content

⚡ Upgrade to v4.x #50

⚡ Upgrade to v4.x

⚡ Upgrade to v4.x #50

Workflow file for this run

name: PHPUnit
on: pull_request
jobs:
test:
name: PHPUnit (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ["8.2"]
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Composer cache
id: composer_cache
uses: actions/cache@v4
with:
path: ./vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install composer
shell: bash
if: steps.composer_cache.outputs.cache-hit != 'true'
run: |
echo 'Install packages'
composer install -n --prefer-dist
- name: Run phpunit
run: composer phpunit