ci: replace with check-extension - #6
Conversation
|
|
Stand by |
|
Added |
|
Updated |
|
@rhoerr bam. We're live. |
|
Fixed the mutation testing failure in eb653e9 — |
|
Two more fixes on main:\n\n- 65dc692 — |
|
This has a few outstanding issues: |
|
Two fixes just landed on 742ce4e — d07861f —
To unblock the PR: please sync/rebase this branch onto the updated |
|
@DavidLambauer one more small nit: |
|
Unfortunately @DavidLambauer
Still happens |
|
Ping @DavidLambauer |
Is this resolved as of #10 being merged? Are there any blockers to this PR? |
|
I think this just needs the 8.6 version of the CI instead of the 8.5 version and it should pass. @damienwebdev |
|
CI still fails with the same error after updating to 8.7. etc/di.xml does define this type: which suggests to me (b) something about the integration tests or maybe CI is mishandling something about class types or autoloading. I notice this is the first |
/** @var ObjectManager */
private $objectManager;
public function setUp(): void
{
$this->objectManager = ObjectManager::getInstance();
}This is what I do in my tests. Is Common? |
PR: Fix Tests to allow PR #6 to pass & merge I'm merging this directly to enable 6 to pass
Summary
.github/workflows/ci.ymlwith the graycoreiocheck-extensionreusable workflow (@v8.5.0), driven by acompute_matrixjob that pulls the currently-supported Magento versions. This covers unit tests, integration tests, phpcs, and DI compile across the supported version matrix.check-extensiondoes not provide as standalone jobs:static(PHPStan) andinfection(PR-only mutation testing).phpcsandphp-cs-fixersteps — phpcs is now handled by the reusable workflow'scoding-standardactionMotivation
Replace hand-maintained CI matrix/install logic with the shared, versioned
graycoreio/github-actions-magento2workflow so supported-version coverage and Magento install steps stay current automatically, while preserving project-specific static analysis and mutation testing.How to test
compute_matrix,check-extension(matrixed across the resolved Magento versions),static, andinfection.check-extensionruns unit + integration tests, phpcs, and DI compile and passes.static(PHPStan) andinfection(mutation testing, PR-only) run and pass.Checklist
main.feat:,fix:,refactor:,test:,chore:,docs:).vendor/bin/phpunit --testsuite unitpasses locally.vendor/bin/phpstan analyse --memory-limit=1Gpasses locally.vendor/bin/phpcs --standard=phpcs.xml.distpasses locally.declare(strict_types=1);. (n/a — no PHP files changed)CHANGELOG.mdentry under## [Unreleased]. (n/a — CI-only change)CONTRIBUTING.md). (n/a — no UX change)Screenshots / GraphQL samples (if UI or API change)
n/a — CI configuration change only.