-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from pardeep26k/patch-1
Fix PHP81 compatibility issue
- Loading branch information
Showing
11 changed files
with
1,151 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- mode:yaml; indent-tabs-mode: nil; -*- | ||
|
||
# Since this is an external WEBUI or RCP call, limit the inputs to avoid shell injection problems. | ||
--- | ||
|
||
name: 'dispatch-build-and-test' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
phpversion: | ||
description: 'what php version to test against' | ||
type: choice | ||
options: | ||
- '7.4' | ||
- '8.0' | ||
- '8.1' | ||
default: '8.1' | ||
compileroptimizationlevel: | ||
description: 'The g++ -O flag number' | ||
type: choice | ||
options: | ||
- '0' | ||
- '1' | ||
- '2' | ||
default: '2' | ||
valgrindtool: | ||
# The possible choices match /usr/lib64/valgrind/*-amd64-linux | ||
# There are other valgrind flags such as --leak-check=full --show-leak-kinds=all | ||
# but those are not supported by run-tests.php. | ||
# See https://valgrind.org/docs/manual/manual.html | ||
description: 'If not none, the -M argument to run-tests.php; the valgrind --tool argument ' | ||
type: choice | ||
options: | ||
- 'memcheck' | ||
- 'helgrind' | ||
- 'drd' | ||
- 'none' | ||
default: 'none' | ||
jobs: | ||
call-build-and-test: | ||
uses: ./.github/workflows/build-and-test.yml | ||
with: | ||
php-version: ${{ github.event.inputs.phpversion }} | ||
compiler-optimization-level: ${{ github.event.inputs.compileroptimizationlevel }} | ||
valgrind-tool: ${{ github.event.inputs.valgrindtool }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: PHP Composer | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-latest,] | ||
php-versions: ['7.4', '8.1'] | ||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
- name: Check PHP Version | ||
run: php -v | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
- name: Run test suite | ||
run: composer run-script test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.