Skip to content

Commit 8f3c6a1

Browse files
authored
php8.4 (#24)
* php8.4 * add php 8.4 to test matrix
1 parent 1b25866 commit 8f3c6a1

File tree

6 files changed

+44
-3
lines changed

6 files changed

+44
-3
lines changed

Diff for: .docker/Dockerfile-php8.4

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM php:8.4-cli-alpine
2+
3+
COPY ./../.. /usr/src/myapp
4+
WORKDIR /usr/src/myapp
5+
6+
RUN apk --no-cache add curl zip
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
RUN composer install

Diff for: .github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
17+
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1818

1919
steps:
2020
- uses: actions/checkout@v4

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.1-green?label=php&style=flat-square"></a>
1818
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.2-green?label=php&style=flat-square"></a>
1919
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.3-green?label=php&style=flat-square"></a>
20+
<a href="https://github.com/rboonzaijer/php-array-to-xml/actions/workflows/tests.yml"><img src="https://shields.io/badge/style-8.4-green?label=php&style=flat-square"></a>
2021

2122
</p>
2223

Diff for: docker-compose.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
version: "3"
2-
31
services:
42

3+
php8.4:
4+
build:
5+
context: .
6+
dockerfile: .docker/Dockerfile-php8.4
7+
58
php8.3:
69
build:
710
context: .

Diff for: docker-run-tests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ docker compose run --rm php8.0 php ./vendor/bin/phpunit -c tests/phpunit-8.0.xml
77
docker compose run --rm php8.1 php ./vendor/bin/phpunit -c tests/phpunit-8.1.xml && \
88
docker compose run --rm php8.2 php ./vendor/bin/phpunit -c tests/phpunit-8.2.xml && \
99
docker compose run --rm php8.3 php ./vendor/bin/phpunit -c tests/phpunit-8.3.xml && \
10+
docker compose run --rm php8.4 php ./vendor/bin/phpunit -c tests/phpunit-8.4.xml && \
1011
echo -e "\n\ndone.\n"

Diff for: tests/phpunit-8.4.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- PHPUnit 10 >= PHP 8.1 (https://phpunit.de/supported-versions.html) -->
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
backupGlobals="false"
6+
bootstrap="./../vendor/autoload.php"
7+
colors="true"
8+
processIsolation="false"
9+
stopOnFailure="false"
10+
cacheResult="false"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
12+
cacheDirectory=".phpunit.cache"
13+
backupStaticProperties="false">
14+
<testsuites>
15+
<testsuite name="PhpArrayToXml Test Suite">
16+
<directory>./../tests/</directory>
17+
</testsuite>
18+
</testsuites>
19+
<source>
20+
<include>
21+
<directory>./../src</directory>
22+
</include>
23+
<exclude>
24+
<directory>./../vendor</directory>
25+
<directory>./../tests</directory>
26+
</exclude>
27+
</source>
28+
</phpunit>

0 commit comments

Comments
 (0)