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
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,41 @@ jobs:
- name: Run build
run: npm run build

phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'

- name: Cache Composer
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-phpstan-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-phpstan-

- name: Install Composer dependencies
run: composer install --no-interaction --no-progress

- name: Cache PHPStan result cache
uses: actions/cache@v4
with:
path: .phpstan-cache
key: ${{ runner.os }}-phpstan-${{ hashFiles('**/composer.lock', 'phpstan.neon.dist') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-phpstan-${{ hashFiles('**/composer.lock', 'phpstan.neon.dist') }}-
${{ runner.os }}-phpstan-

- name: Run PHPStan
run: composer phpstan

e2e:
name: E2E (Playwright)
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ package/dist

# AI generated files
.claude/

# PHPStan result cache
/.phpstan-cache/
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"phpcompatibility/phpcompatibility-wp": "dev-master",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99",
"automattic/vipwpcs": "^3.0",
"wp-coding-standards/wpcs": "^3.0"
"wp-coding-standards/wpcs": "^3.0",
"phpstan/phpstan": "^2.0",
"szepeviktor/phpstan-wordpress": "^2.0",
"php-stubs/wp-cli-stubs": "^2.10",
"php-stubs/woocommerce-stubs": "^9.0"
},
"config": {
"platform": {
Expand All @@ -27,6 +31,9 @@
],
"fix": [
"phpcbf"
],
"phpstan": [
"phpstan analyse --memory-limit=-1"
]
},
"minimum-stability": "dev"
Expand Down
281 changes: 275 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading