Skip to content

Commit

Permalink
Added bug fixes for older versions of PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Dec 19, 2023
1 parent 7bbd810 commit 0263a76
Show file tree
Hide file tree
Showing 27 changed files with 690 additions and 2,448 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/build.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Tests

on:
push:
branches: [ master, Workarounds ]
pull_request:
branches: [ master ]

jobs:
current:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- uses: "actions/checkout@v3"
- uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php-version }}

- name: Validate composer.json
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: php-${{ matrix.php-version }}

- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test

outdated-8-1-2:
runs-on: ubuntu-latest
container: setupphp/node@sha256:9271c0a914deb70c1717ec113410c9d43e48123d0ed398bb696f00f4f0ef15ba

strategy:
matrix:
php-version:
- "8.1"

steps:
- uses: "actions/checkout@v3"
- uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php-version }}

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: php-outdated

- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.phpunit.cache
/.*
/composer.lock
/vendor
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"keywords": ["dom", "xsl", "xslt"],
"license": "MIT",
"require": {
"php": ">=8.1",
"php": "^8.1",
"ext-dom": "*"
},
"require-dev": {
Expand Down
Loading

0 comments on commit 0263a76

Please sign in to comment.