Skip to content

Commit 05d4d17

Browse files
authored
fix: update export-ignore rules in .gitattributes (#228)
* fix: update export-ignore rules in .gitattributes * fix: include phpstan.neon and tests in analysis
1 parent 08d8d08 commit 05d4d17

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@
1414
/.release-please-manifest.json export-ignore
1515
/skills-lock.json export-ignore
1616
/.trunkignore export-ignore
17+
/tests/ export-ignore
18+
/phpunit.xml.dist export-ignore
19+
/infection.json5 export-ignore
20+
/.gitignore export-ignore
21+
/.gitattributes export-ignore

.github/workflows/static-analysis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ jobs:
8181
composer update --with-dependencies
8282
bin/magento setup:upgrade
8383
84-
# phpstan.neon is export-ignored, so the copied path repository omits
85-
# it; place it next to the analysed source for the phpstan job.
84+
# phpstan.neon and tests/ are export-ignored, so the copied path
85+
# repository omits them; place them next to the analysed source so the
86+
# phpstan job can analyse both `src` and `tests` (per phpstan.neon).
8687
cp ../mageforge/phpstan.neon vendor/openforgeproject/mageforge/phpstan.neon
88+
cp -r ../mageforge/tests vendor/openforgeproject/mageforge/tests
8789
8890
- name: Pack Magento install
8991
run: |

0 commit comments

Comments
 (0)