From 5147aad050767024e2de3ede5db4ead2a7ce19bb Mon Sep 17 00:00:00 2001 From: Rayan Levert Date: Sat, 11 Apr 2026 07:25:49 +0200 Subject: [PATCH] Adding php8.5 through Docker and CI #35 --- .github/workflows/ci.yaml | 19 +++++++++++++++++-- docker-compose.yml | 11 ++++++++++- docker/8.5/Dockerfile | 24 ++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 docker/8.5/Dockerfile diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6787e51..0e5a58f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,13 @@ jobs: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: + - "8.4" + - "8.5" + steps: - name: Checkout uses: actions/checkout@v4 @@ -19,7 +26,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.4 + php-version: ${{ matrix.php-version }} extensions: mbstring coverage: none tools: none @@ -38,6 +45,13 @@ jobs: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: + - "8.4" + - "8.5" + steps: - name: Checkout uses: actions/checkout@v4 @@ -45,7 +59,7 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.4 + php-version: ${{ matrix.php-version }} extensions: mbstring coverage: none tools: none @@ -69,6 +83,7 @@ jobs: matrix: php-version: - "8.4" + - "8.5" steps: - name: Checkout diff --git a/docker-compose.yml b/docker-compose.yml index b957e9a..a485f1d 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ services: - cli: + cli-8.4: build: docker/8.4 restart: 'no' tty: true @@ -7,3 +7,12 @@ services: working_dir: /app volumes: - .:/app + + cli-8.5: + build: docker/8.5 + restart: 'no' + tty: true + stdin_open: true + working_dir: /app + volumes: + - .:/app \ No newline at end of file diff --git a/docker/8.5/Dockerfile b/docker/8.5/Dockerfile new file mode 100644 index 0000000..d56a214 --- /dev/null +++ b/docker/8.5/Dockerfile @@ -0,0 +1,24 @@ +FROM composer:2.9.5 AS composer +FROM php:8.5-cli + +LABEL maintainer="Rayan Levert " + +# Installing packages needed +RUN apt-get update -y && \ + apt-get install -y \ + git \ + zip + +# Enabling xdebug +RUN pecl install xdebug && docker-php-ext-enable xdebug + +# Creates the app directory +RUN mkdir /app + +# Volumes +VOLUME ["/app"] + +# Composer +COPY --from=composer /usr/bin/composer /usr/local/bin/composer + +CMD ["php"] \ No newline at end of file