Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/coding-conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ name: Coding Conventions
on:
push:
branches: [3.x]
paths-ignore:
- "docs/**"
- ".github/**"
pull_request:
paths-ignore:
- "docs/**"
- ".github/**"
workflow_dispatch:

concurrency:
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
paths-ignore:
- "docs/**"
- ".github/**"
# - ".github/**"
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, pdo, sqlite, pdo_sqlite, pdo_mysql, pdo_pgsql, intl, ftp, zip
coverage: pcov
coverage: none

- name: Setup Bun
uses: oven-sh/setup-bun@v2
Expand All @@ -59,20 +59,21 @@ jobs:
os: [ubuntu-latest]
php: [8.5]
database: [sqlite, mysql, postgres]
stability: [prefer-stable]
dependencies: [highest]
include:
- os: windows-latest
php: 8.5
database: sqlite
stability: prefer-stable
dependencies: highest

- os: ubuntu-latest
php: 8.5
database: sqlite
stability: prefer-lowest
dependencies: lowest
env:
POSTGRES_USER: ${{ matrix.os == 'windows-latest' && 'postgres' || 'runner' }}

name: "Run tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.stability }} - ${{ matrix.os }}"
name: "Run tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.dependencies }} - ${{ matrix.os }}"

steps:
- name: Checkout code
Expand All @@ -83,15 +84,18 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, pdo, sqlite, pdo_sqlite, pdo_mysql, pdo_pgsql, intl, ftp, zip
coverage: pcov
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
uses: ramsey/composer-install@v4
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: "--prefer-dist --ignore-platform-reqs"

- name: "Setup Redis"
if: ${{ matrix.os != 'windows-latest' }}
Expand Down
27 changes: 17 additions & 10 deletions .github/workflows/isolated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
paths-ignore:
- "docs/**"
- ".github/**"
# - ".github/**"
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
Expand Down Expand Up @@ -48,10 +48,10 @@ jobs:
package: ${{ fromJson(needs.get_packages.outputs.matrix) }}
php:
- 8.5
stability:
- prefer-stable
- prefer-lowest
name: "Run tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.stability }}"
dependencies:
- highest
- lowest
name: "Run tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.dependencies }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -63,7 +63,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, pcntl, fileinfo, intl
coverage: pcov
coverage: none

- name: Setup Redis
if: ${{ matrix.os != 'windows-latest' && matrix.package.name == 'kv-store' }}
Expand All @@ -77,11 +77,18 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Build Packages
run: ./bin/build-packages

- name: Install dependencies
run: |
./bin/build-packages
cd "packages/${{ matrix.package.basename }}"
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs
uses: ramsey/composer-install@v4
with:
dependency-versions: ${{ matrix.dependencies }}
composer-options: >-
--prefer-dist
--ignore-platform-reqs
--prefer-stable
--working-dir=packages/${{ matrix.package.basename }}

- name: Execute tests
run: phpunit -c "packages/${{ matrix.package.basename }}/phpunit.xml"
Loading