From 89f0d438e0c909678b22ab83ff23cee57863ee31 Mon Sep 17 00:00:00 2001 From: Maarten S <42799774+talkinnl@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:22:57 +0200 Subject: [PATCH] Update php.yml to run with PHP 8.2 and 8.3 (#2) Workflow: Use 2 runs: PHP 8.2 and 8.3 --- .github/workflows/php.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 198d9a2..472b1ed 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -13,24 +13,26 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + php_version: ["8.2", "8.3"] steps: - uses: actions/checkout@v3 + - name: "Install PHP" + uses: "shivammathur/setup-php@2.29.0" + with: + coverage: "none" + php-version: "${{ matrix.php-version }}" + ini-values: memory_limit=-1 + tools: composer:v2 + - name: Validate composer.json and composer.lock run: composer validate --strict - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - name: Install dependencies - run: composer install --prefer-dist --no-progress --ignore-platform-reqs + run: composer install --prefer-dist --no-interaction --no-progress - - name: Install dependencies - run: php vendor/bin/phpunit tests/ + - name: Run tests + run: make phpunit