Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- "8.4"
- "8.5"

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
php-version: ${{ matrix.php-version }}
extensions: mbstring
coverage: none
tools: none
Expand All @@ -38,14 +45,21 @@ jobs:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- "8.4"
- "8.5"

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
php-version: ${{ matrix.php-version }}
extensions: mbstring
coverage: none
tools: none
Expand All @@ -72,6 +86,7 @@ jobs:
matrix:
php-version:
- "8.4"
- "8.5"

steps:
- name: Checkout
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
services:
cli:
cli-8.4:
build: docker/8.4
restart: 'no'
tty: true
stdin_open: true
working_dir: /app
volumes:
- .:/app

cli-8.5:
build: docker/8.5
restart: 'no'
tty: true
stdin_open: true
working_dir: /app
volumes:
- .:/app
24 changes: 24 additions & 0 deletions docker/8.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM composer:2.9.5 AS composer
FROM php:8.5-cli

LABEL maintainer="Rayan Levert <rayanlevert@msn.com>"

# 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"]
Loading