Skip to content

Commit 5147aad

Browse files
committed
Adding php8.5 through Docker and CI #35
1 parent 041415c commit 5147aad

3 files changed

Lines changed: 51 additions & 3 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ jobs:
1212

1313
runs-on: ubuntu-latest
1414

15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php-version:
19+
- "8.4"
20+
- "8.5"
21+
1522
steps:
1623
- name: Checkout
1724
uses: actions/checkout@v4
1825

1926
- name: Install PHP
2027
uses: shivammathur/setup-php@v2
2128
with:
22-
php-version: 8.4
29+
php-version: ${{ matrix.php-version }}
2330
extensions: mbstring
2431
coverage: none
2532
tools: none
@@ -38,14 +45,21 @@ jobs:
3845

3946
runs-on: ubuntu-latest
4047

48+
strategy:
49+
fail-fast: false
50+
matrix:
51+
php-version:
52+
- "8.4"
53+
- "8.5"
54+
4155
steps:
4256
- name: Checkout
4357
uses: actions/checkout@v4
4458

4559
- name: Install PHP
4660
uses: shivammathur/setup-php@v2
4761
with:
48-
php-version: 8.4
62+
php-version: ${{ matrix.php-version }}
4963
extensions: mbstring
5064
coverage: none
5165
tools: none
@@ -69,6 +83,7 @@ jobs:
6983
matrix:
7084
php-version:
7185
- "8.4"
86+
- "8.5"
7287

7388
steps:
7489
- name: Checkout

‎docker-compose.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
services:
2-
cli:
2+
cli-8.4:
33
build: docker/8.4
44
restart: 'no'
55
tty: true
66
stdin_open: true
77
working_dir: /app
88
volumes:
99
- .:/app
10+
11+
cli-8.5:
12+
build: docker/8.5
13+
restart: 'no'
14+
tty: true
15+
stdin_open: true
16+
working_dir: /app
17+
volumes:
18+
- .:/app

‎docker/8.5/Dockerfile‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM composer:2.9.5 AS composer
2+
FROM php:8.5-cli
3+
4+
LABEL maintainer="Rayan Levert <rayanlevert@msn.com>"
5+
6+
# Installing packages needed
7+
RUN apt-get update -y && \
8+
apt-get install -y \
9+
git \
10+
zip
11+
12+
# Enabling xdebug
13+
RUN pecl install xdebug && docker-php-ext-enable xdebug
14+
15+
# Creates the app directory
16+
RUN mkdir /app
17+
18+
# Volumes
19+
VOLUME ["/app"]
20+
21+
# Composer
22+
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
23+
24+
CMD ["php"]

0 commit comments

Comments
 (0)