Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
composer.json export-ignore
/composer.json export-ignore
phpcs.xml.dist export-ignore
phpunit.xml.dist export-ignore
wp-setup.sh export-ignore
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: CS

on:
# Run on all relevant pushes (except to main) and on all relevant pull requests.
# Run on all relevant pushes and pull requests.
push:
paths:
- '**.php'
- 'composer.json'
- 'packages/*/composer.json'
- 'composer.lock'
- '.phpcs.xml.dist'
- 'phpcs.xml.dist'
Expand All @@ -14,6 +15,7 @@ on:
paths:
- '**.php'
- 'composer.json'
- 'packages/*/composer.json'
- 'composer.lock'
- '.phpcs.xml.dist'
- 'phpcs.xml.dist'
Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -55,6 +57,12 @@ jobs:
- name: Validate Composer installation
run: composer validate --no-check-all

- name: Validate Composer packages
run: |
for manifest in packages/*/composer.json; do
composer --working-dir="${manifest%/composer.json}" validate --strict --no-check-lock
done

# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: End-to-end Tests
on:
push:
branches:
- main
- trunk
pull_request:

# Disable permissions for all available scopes by default.
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/mysql-proxy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: MySQL Proxy Tests
on:
push:
branches:
- main
- trunk
pull_request:

# Disable permissions for all available scopes by default.
Expand All @@ -25,9 +25,13 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '7.2'
coverage: none

- name: Configure monorepo package repository
run: composer config repositories.mysql-on-sqlite path ../mysql-on-sqlite
working-directory: packages/mysql-proxy

- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm-spike.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: WASM extension build
on:
push:
branches:
- main
- trunk
paths:
- 'packages/php-ext-wp-mysql-parser/**'
- '.github/workflows/wasm-spike.yml'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-tests-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: WordPress End-to-end Tests
on:
push:
branches:
- main
- trunk
pull_request:

# Disable permissions for all available scopes by default.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-tests-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: WordPress PHPUnit Tests
on:
push:
branches:
- main
- trunk
pull_request:

# Disable permissions for all available scopes by default.
Expand Down
3 changes: 3 additions & 0 deletions packages/mysql-on-sqlite/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.gitattributes export-ignore
/phpunit.xml.dist export-ignore
/tests export-ignore
Loading
Loading