Commit Graph

24 Commits

Author SHA1 Message Date
fdebfcb986 fix: add retry logic to composer install steps to resolve DNS timeout failures
Replace bare 'composer install' with ramsey/composer-install action (which
provides built-in retry, caching, and --prefer-dist) in code-quality.yml and
tests.yml. Add a 3-attempt shell retry loop in release.yml where --no-dev
--optimize-autoloader flags are required.

phpunit.yml already used ramsey/composer-install and is unaffected.

Closes #57
2026-03-17 09:34:31 +00:00
a1e5b166ff fix: address PR #10 CodeRabbit review feedback (issue #45) (#51)
* fix: address PR #10 CodeRabbit review feedback

- Fix SC2115 shellcheck warning in build.sh (use ${var:?} for safe rm -rf)
- Fix SC2164 shellcheck warning in build.sh (cd build || exit 1)
- Standardise bullet points from hyphens to asterisks in .wiki/Contributing.md
- Refine verb formality in readme.txt, README.md, .wiki/Contributing.md, .wiki/Coding-Standards.md
- Clarify PHPDoc wording in .wiki/Coding-Standards.md
- Add clarifying comment to phpcs-simple.xml arg value

* fix: re-enable PHPUnit test step in tests.yml

Tests were commented out in PR #10. PHPUnit test files exist in
tests/phpunit/ and phpunit.xml is configured. Re-enabling the step
so tests actually run in CI.

Closes #45

* fix: remove redundant composer require steps in code-quality workflow

szepeviktor/phpstan-wordpress, wp-coding-standards/wpcs, and
dealerdirect/phpcodesniffer-composer-installer are already declared in
composer.json require-dev. The extra 'composer require' steps after
'composer install' caused a second packagist.org network hit that timed
out in CI, failing the PHPStan Static Analysis job.

Fixes the Code Quality CI failure on PR #51 (issue #45).
2026-03-17 00:04:23 +00:00
6684375ea3 Fix duplicate CI runs by removing feature/* from push triggers
Workflows were running twice for feature branches: once on push and once
on pull_request. Now push only triggers for main branch, while feature
branches get CI via the pull_request trigger when a PR exists.

This prevents duplicate workflow runs and the confusion of having
one run pass while another fails for the same commit.
2025-11-24 23:44:19 +00:00
e660915402 Disable flaky CI workflows (Playground tests, SonarCloud)
- Disable WordPress Playground tests from automatic PR/push triggers
  (WordPress Playground CLI doesn't start reliably in GitHub Actions)
- Disable SonarCloud workflow (SONAR_TOKEN returns HTTP 403)
- Comment out SonarCloud job in code-quality.yml
- Keep workflows available for manual debugging via workflow_dispatch
- PHPUnit tests and code quality checks remain active
2025-11-24 20:03:35 +00:00
c17b6f1818 Fix remaining CI/CD issues
- Add yoast/phpunit-polyfills ^2.0 to composer.json for WordPress test suite compatibility
- Define WP_TESTS_PHPUNIT_POLYFILLS_PATH in bootstrap.php before loading WP test framework
- Update actions/cache to v4 (deprecated SHA references cause failures)
- Update actions/setup-java to v4
- Update codacy/codacy-analysis-cli-action to v4 tag (SHA ref not found)
- Update github/codeql-action/upload-sarif to v3
2025-11-24 19:38:01 +00:00
1590be3ba6 Fix GitHub Actions workflow failures
- Add WP_PHPUNIT__DIR and WP_TESTS_DIR environment variables to PHPUnit workflow to fix 'WP_UnitTestCase not found' error
- Increase WordPress Playground server timeout from 60s to 180s with better progress logging to fix timeout failures
- Add conditional checks for SONAR_TOKEN and CODACY_PROJECT_TOKEN to gracefully skip analysis when tokens are not set
- Properly handle server process lifecycle in Playground tests (capture PID, kill on completion)
2025-11-24 19:35:03 +00:00
53ac0ce696 Fix GitHub Actions by using stable action tags
Replace SHA-based action references with stable version tags:
- actions/setup-node@60edb5dd... → @v4
- shivammathur/setup-php@e6f75134... → @v2

This resolves "action could not be found at URI" errors caused by
GitHub API issues when resolving specific commit SHAs.

🤖 Generated with [Qoder][https://qoder.com]
2025-11-16 04:31:21 +00:00
ca5a9cf38b Fix PHPUnit tests and SonarCloud analysis 2025-04-23 12:42:13 +01:00
db8c84a80a Fix PHPUnit tests and SonarCloud analysis 2025-04-23 04:33:55 +01:00
b1966067ea Fix failing tests: Update install-wp-tests.sh, Cypress commands, and GitHub Actions workflows 2025-04-23 04:26:06 +01:00
398d24ed90 Fix code quality issues
- Fix phpstan.neon file structure
- Fix Markdown formatting in docs/code-quality-setup.md
- Add proper language specifier to .env code block in README.md
- Add blank lines around code blocks in README.md
- Add newline at end of GitHub workflow file
2025-04-21 14:57:19 +01:00
19ec65326b Fix code quality tools configuration and workflow
- Fix PHP CodeSniffer configuration to use WordPress coding standards
- Add WordPress stubs to PHPStan configuration
- Fix Codacy Analysis action by removing unsupported parameter
- Update SonarCloud action to use recommended sonarqube-scan-action
- Add comprehensive documentation for code quality tools
- Update composer scripts to use vendor binaries
2025-04-21 14:45:27 +01:00
3048e91a78 Fix code quality tools configuration and update documentation 2025-04-21 14:32:11 +01:00
3926927791 Fix PHP version compatibility issues with all dependencies 2025-04-21 05:10:34 +01:00
728c5dcf3d Fix PHP version compatibility issues with PHPStan and PHPMD 2025-04-21 05:08:23 +01:00
ea628c521b Merge branch 'main' into simplify-code-quality-tools 2025-04-21 05:03:41 +01:00
ae7bd5cb89 Merge main into simplify-code-quality-tools and add SonarCloud and Codacy jobs 2025-04-21 05:01:49 +01:00
78bd0708d3 Add PHPStan and PHP Mess Detector for improved code quality 2025-04-21 04:58:51 +01:00
36840c46c1 Configure SonarCloud and Codacy with proper settings 2025-04-21 04:48:12 +01:00
0ab1a1df4d Temporarily remove SonarCloud and Codacy jobs due to compatibility issues 2025-04-21 04:43:02 +01:00
69cd192f49 Fix SonarCloud configuration and fenced code blocks 2025-04-21 04:41:12 +01:00
4ebe55b940 Fix GitHub Actions references and add Markdown linting configuration 2025-04-21 04:34:05 +01:00
546ed59a61 Fix code quality issues from PR feedback 2025-04-21 04:25:28 +01:00
5cd2a7d374 Enhance CI/CD workflow with code quality checks and PHPCBF integration 2025-04-21 04:02:27 +01:00