fix: php 8.4 deprecation for implicitly nullable parameters #89
Workflow file for this run
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
name: Run CI | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' # Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
services: | |
wiremock: | |
image: wiremock/wiremock | |
ports: | |
- 8080:8080 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: [8.1, 8.2] | |
use-lowest-dependencies: [true, false] | |
env: | |
LD_INCLUDE_INTEGRATION_TESTS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # If you only need the current version keep this. | |
- uses: ./.github/actions/ci | |
with: | |
php-version: ${{ matrix.php-version }} | |
use-lowest-dependencies: ${{ matrix.use-lowest-dependencies }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
windows-build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
php-version: ['8.1', '8.2'] | |
env: | |
LD_INCLUDE_INTEGRATION_TESTS: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # If you only need the current version keep this. | |
- name: Setup PHP | |
uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Install java support | |
run: choco install -y javaruntime | |
- name: Download wiremock | |
run: Invoke-WebRequest -Uri https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/2.31.0/wiremock-jre8-standalone-2.31.0.jar -UseBasicParsing -OutFile wiremock.jar | |
- name: Verify checksum | |
shell: bash | |
run: | | |
[ "$(sha256sum wiremock.jar | awk '{ print $1 }')" == "c5cd526e04c57293ec847d845733b017c4052d2132653332e05a54272934a305" ] | |
- name: Start wiremock | |
run: cmd /c "START /b java -jar ./wiremock.jar" | |
- name: Wait for wiremock to be available | |
run: PowerShell -Command Start-Sleep -Seconds 5 | |
- name: Install dependencies | |
run: composer install --no-progress | |
- name: Run tests | |
run: .\vendor\bin\phpunit |