Skip to content

php8.4 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 19, 2025
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
8 changes: 8 additions & 0 deletions .docker/Dockerfile-php8.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM php:8.4-cli-alpine

COPY ./../.. /usr/src/myapp
WORKDIR /usr/src/myapp

RUN apk --no-cache add curl zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer install
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<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>
<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>
<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>
<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>

</p>

Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
version: "3"

services:

php8.4:
build:
context: .
dockerfile: .docker/Dockerfile-php8.4

php8.3:
build:
context: .
Expand Down
1 change: 1 addition & 0 deletions docker-run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ docker compose run --rm php8.0 php ./vendor/bin/phpunit -c tests/phpunit-8.0.xml
docker compose run --rm php8.1 php ./vendor/bin/phpunit -c tests/phpunit-8.1.xml && \
docker compose run --rm php8.2 php ./vendor/bin/phpunit -c tests/phpunit-8.2.xml && \
docker compose run --rm php8.3 php ./vendor/bin/phpunit -c tests/phpunit-8.3.xml && \
docker compose run --rm php8.4 php ./vendor/bin/phpunit -c tests/phpunit-8.4.xml && \
echo -e "\n\ndone.\n"
28 changes: 28 additions & 0 deletions tests/phpunit-8.4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 10 >= PHP 8.1 (https://phpunit.de/supported-versions.html) -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="./../vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
cacheResult="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./../tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./../src</directory>
</include>
<exclude>
<directory>./../vendor</directory>
<directory>./../tests</directory>
</exclude>
</source>
</phpunit>
Loading