From d1b4db0cc803a9c5c1b58006c8dfe41761e434b0 Mon Sep 17 00:00:00 2001 From: AlphaRecon19 Date: Sun, 28 Jan 2024 19:24:10 +0000 Subject: [PATCH] [ci] Use docker image to run PHP at version --- .github/workflows/php.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 91b8998..a9af112 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -7,11 +7,12 @@ on: branches: [ master ] env: - PHP_VERSION: '8.3' + PHP_VERSION: 'v8.3.2' jobs: composer_install: runs-on: ubuntu-latest + container: ghcr.io/medleybox/php-cli:${{ env.PHP_VERSION }} steps: - uses: actions/checkout@v4 @@ -27,20 +28,14 @@ jobs: restore-keys: | ${{ runner.os }}-php- - - uses: nanasess/setup-php@v4 - with: - php-version: ${{ env.PHP_VERSION }} - - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' run: composer install --prefer-dist --no-progress test: runs-on: ubuntu-latest + container: ghcr.io/medleybox/php-cli:${{ env.PHP_VERSION }} + needs: [composer_install] steps: - - uses: nanasess/setup-php@v4 - with: - php-version: ${{ env.PHP_VERSION }} - - uses: actions/checkout@v4 - name: Cache Composer packages