diff --git a/.gitattributes b/.gitattributes index 0589acd0..ce6b1cdc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,8 @@ /.release-please-manifest.json export-ignore /skills-lock.json export-ignore /.trunkignore export-ignore +/tests/ export-ignore +/phpunit.xml.dist export-ignore +/infection.json5 export-ignore +/.gitignore export-ignore +/.gitattributes export-ignore diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index e94d6a50..8b677672 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -81,9 +81,11 @@ jobs: composer update --with-dependencies bin/magento setup:upgrade - # phpstan.neon is export-ignored, so the copied path repository omits - # it; place it next to the analysed source for the phpstan job. + # phpstan.neon and tests/ are export-ignored, so the copied path + # repository omits them; place them next to the analysed source so the + # phpstan job can analyse both `src` and `tests` (per phpstan.neon). cp ../mageforge/phpstan.neon vendor/openforgeproject/mageforge/phpstan.neon + cp -r ../mageforge/tests vendor/openforgeproject/mageforge/tests - name: Pack Magento install run: |