From 3943df723b6ef81cfbbb55df3c8228802ad3baf1 Mon Sep 17 00:00:00 2001 From: Nicos Panayides Date: Wed, 20 Nov 2024 15:48:35 +0200 Subject: [PATCH] Fix workflow --- .github/workflows/ci.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3e15ec1..7fdaac8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,21 +12,24 @@ permissions: jobs: build: runs-on: ubuntu-latest - container: - image: php:${{ matrix.php_version }} strategy: matrix: php_version: ["8.2"] - steps: - uses: actions/checkout@v4 - + - name: Setup PHP with composer v2 + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php_version }} + coverage: pcov + extensions: json, simplexml + 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 + uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}