Skip to content

Commit

Permalink
Support for PHP 8.2 and PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Jun 17, 2024
1 parent 1591b3b commit 3360a18
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 15 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.php73.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ on:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
workflow_dispatch:

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,7 +34,7 @@ jobs:
- 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()
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
13 changes: 10 additions & 3 deletions .github/workflows/build.php74.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ on:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
workflow_dispatch:

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,7 +34,7 @@ jobs:
- 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()
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
13 changes: 10 additions & 3 deletions .github/workflows/build.php80.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ on:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
workflow_dispatch:

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,7 +34,7 @@ jobs:
- 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()
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
13 changes: 10 additions & 3 deletions .github/workflows/build.php81.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ on:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
workflow_dispatch:

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -27,7 +34,7 @@ jobs:
- 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()
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
5 changes: 3 additions & 2 deletions .github/workflows/build.php81.release.ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ on:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: "./build/logs/junit.xml"
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/build.php82.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI (Ant, PHP 8.2)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
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: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
40 changes: 40 additions & 0 deletions .github/workflows/build.php83.ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI (Ant, PHP 8.3)

on:
push:
tags-ignore:
- '**'
branches:
- '**'
paths-ignore:
- '**.md'
- '**.tmpl'
- '.github/**'
- 'examples/**'
pull_request:
types:
- opened
branches:
- 'master'
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: Build with Ant
run: ant -noinput -buildfile build.ant.xml
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: github.event_name != 'pull_request'
with:
files: "./build/logs/junit.xml"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
},
"require": {
"php": "^7.3|^7.4|^8.0|^8.1|^8.2|^8.3",
"php": "^7.3|^7.4|^8",
"ext-dom": "*",
"ext-mbstring": "*",
"dompdf/dompdf": "^2.0",
Expand Down

0 comments on commit 3360a18

Please sign in to comment.