feat: Inline context for migration events #82
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.26, 8.2.13] | |
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: Uninstall some default packages | |
run: choco uninstall -y php composer | |
- name: Install java support | |
run: choco install -y javaruntime | |
- name: Install php support | |
run: choco install -y php --version=${{ matrix.php-version }} --force | |
- name: Install composer | |
run: choco install -y composer --force | |
- name: PHP version | |
run: php --version | |
- 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 |