From abd8f69f1cb59266224cab69dab2b833abdba380 Mon Sep 17 00:00:00 2001 From: Dominik Kohler Date: Tue, 23 Jan 2024 09:53:12 +0100 Subject: [PATCH 1/2] Run tests also for newer PHP releases --- .github/workflows/build.php82.ant.yml | 39 +++++++++++++++++++++++++++ .github/workflows/build.php83.ant.yml | 39 +++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 .github/workflows/build.php82.ant.yml create mode 100644 .github/workflows/build.php83.ant.yml diff --git a/.github/workflows/build.php82.ant.yml b/.github/workflows/build.php82.ant.yml new file mode 100644 index 00000000..aab042c2 --- /dev/null +++ b/.github/workflows/build.php82.ant.yml @@ -0,0 +1,39 @@ +name: CI (Ant, PHP 8.2) + +on: + push: + tags-ignore: + - '**' + branches: + - '**' + paths-ignore: + - '**.md' + - '.github/**' + - 'examples/**' + workflow_dispatch: + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + extensions: imagick, swoole + coverage: xdebug + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Build with Ant + run: ant -noinput -buildfile build.ant.xml + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: "./build/logs/junit.xml" diff --git a/.github/workflows/build.php83.ant.yml b/.github/workflows/build.php83.ant.yml new file mode 100644 index 00000000..5a982d3b --- /dev/null +++ b/.github/workflows/build.php83.ant.yml @@ -0,0 +1,39 @@ +name: CI (Ant, PHP 8.3) + +on: + push: + tags-ignore: + - '**' + branches: + - '**' + paths-ignore: + - '**.md' + - '.github/**' + - 'examples/**' + workflow_dispatch: + +jobs: + build: + permissions: write-all + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: '8.3' + extensions: imagick, swoole + coverage: xdebug + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + - name: Build with Ant + run: ant -noinput -buildfile build.ant.xml + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: "./build/logs/junit.xml" From 009696323198f4950e57ebb51f5d8ea6ebe93a0c Mon Sep 17 00:00:00 2001 From: Dominik Kohler Date: Tue, 23 Jan 2024 10:14:28 +0100 Subject: [PATCH 2/2] Added badges for PHP 8.2 and 8.3 tests --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bda896d9..d6d9744b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,12 @@ [![Latest Stable Version](https://poser.pugx.org/horstoeko/zugferd/v/stable.png)](https://packagist.org/packages/horstoeko/zugferd) [![Total Downloads](https://poser.pugx.org/horstoeko/zugferd/downloads.png)](https://packagist.org/packages/horstoeko/zugferd) [![Latest Unstable Version](https://poser.pugx.org/horstoeko/zugferd/v/unstable.png)](https://packagist.org/packages/horstoeko/zugferd) [![License](https://poser.pugx.org/horstoeko/zugferd/license.png)](https://packagist.org/packages/horstoeko/zugferd) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/horstoeko/zugferd) -[![CI (Ant, PHP 7.3)](https://github.com/horstoeko/zugferd/actions/workflows/build.php73.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php73.ant.yml) [![CI (Ant, PHP 7.4)](https://github.com/horstoeko/zugferd/actions/workflows/build.php74.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php74.ant.yml) [![CI (PHP 8.0)](https://github.com/horstoeko/zugferd/actions/workflows/build.php80.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php80.ant.yml) [![CI (PHP 8.1)](https://github.com/horstoeko/zugferd/actions/workflows/build.php81.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php81.ant.yml) +[![CI (Ant, PHP 7.3)](https://github.com/horstoeko/zugferd/actions/workflows/build.php73.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php73.ant.yml) +[![CI (Ant, PHP 7.4)](https://github.com/horstoeko/zugferd/actions/workflows/build.php74.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php74.ant.yml) +[![CI (PHP 8.0)](https://github.com/horstoeko/zugferd/actions/workflows/build.php80.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php80.ant.yml) +[![CI (PHP 8.1)](https://github.com/horstoeko/zugferd/actions/workflows/build.php81.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php81.ant.yml) +[![CI (PHP 8.2)](https://github.com/horstoeko/zugferd/actions/workflows/build.php82.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php82.ant.yml) +[![CI (PHP 8.3)](https://github.com/horstoeko/zugferd/actions/workflows/build.php83.ant.yml/badge.svg)](https://github.com/horstoeko/zugferd/actions/workflows/build.php83.ant.yml) ## Table of Contents