Skip to content

Commit

Permalink
[ci] Use docker image to run PHP at version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaRecon19 committed Jan 28, 2024
1 parent 60ac81e commit d1b4db0
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit d1b4db0

Please sign in to comment.